ports/devel/electron18/files/patch-services_video__capture_broadcasting__receiver.cc
Hiroki Tagato 1780f894bd devel/electron18: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.

It's easier than you think.

If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.

WWW: https://electronjs.org/

Requested by:	mikael (via email)
2022-06-22 15:56:20 +09:00

21 lines
1.2 KiB
C++

--- services/video_capture/broadcasting_receiver.cc.orig 2022-05-19 05:17:45 UTC
+++ services/video_capture/broadcasting_receiver.cc
@@ -28,7 +28,7 @@ void CloneSharedBufferHandle(const mojo::ScopedSharedB
void CloneSharedBufferToRawFileDescriptorHandle(
const mojo::ScopedSharedBufferHandle& source,
media::mojom::VideoBufferHandlePtr* target) {
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
// |source| is unwrapped to a |PlatformSharedMemoryRegion|, from whence a file
// descriptor can be extracted which is then mojo-wrapped.
base::subtle::PlatformSharedMemoryRegion platform_region =
@@ -240,7 +240,7 @@ void BroadcastingReceiver::BufferContext::
ConvertRawFileDescriptorToSharedBuffer() {
DCHECK(buffer_handle_->is_shared_memory_via_raw_file_descriptor());
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
// The conversion unwraps the descriptor from its mojo handle to the raw file
// descriptor (ie, an int). This is used to create a
// PlatformSharedMemoryRegion which is then wrapped as a