blob: 533ba04a4988f188b9a6bb64b2b7ee1a44eeef97 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- electron/shell/common/gin_converters/osr_converter.cc.orig 2025-05-07 07:36:13 UTC
+++ electron/shell/common/gin_converters/osr_converter.cc
@@ -115,7 +115,7 @@ v8::Local<v8::Value> Converter<electron::OffscreenShar
electron::Buffer::Copy(
isolate, base::byte_span_from_ref(val.shared_texture_handle))
.ToLocalChecked());
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
auto v8_planes = base::ToVector(val.planes, [isolate](const auto& plane) {
gin::Dictionary v8_plane(isolate, v8::Object::New(isolate));
v8_plane.Set("stride", plane.stride);
|