blob: 8a851f65e8421f40c21ed58303e7f7354e79670b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- electron/shell/browser/osr/osr_video_consumer.cc.orig 2025-07-02 10:12:01 UTC
+++ electron/shell/browser/osr/osr_video_consumer.cc
@@ -108,7 +108,7 @@ void OffScreenVideoConsumer::OnFrameCaptured(
#elif BUILDFLAG(IS_APPLE)
texture.shared_texture_handle =
reinterpret_cast<uintptr_t>(gmb_handle.io_surface.get());
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
const auto& native_pixmap = gmb_handle.native_pixmap_handle();
texture.modifier = native_pixmap.modifier;
for (const auto& plane : native_pixmap.planes) {
|