blob: 9a6ddaf53c726ce30bab07903486b38aa3e369c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- remoting/host/desktop_capturer_wrapper.cc.orig 2023-05-25 00:42:01 UTC
+++ remoting/host/desktop_capturer_wrapper.cc
@@ -13,7 +13,7 @@
#include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "remoting/host/linux/wayland_desktop_capturer.h"
#include "remoting/host/linux/wayland_utils.h"
#endif
@@ -32,7 +32,7 @@ void DesktopCapturerWrapper::CreateCapturer(
const webrtc::DesktopCaptureOptions& options) {
DCHECK(!capturer_);
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
if (IsRunningWayland()) {
capturer_ = std::make_unique<WaylandDesktopCapturer>(options);
} else {
@@ -109,7 +109,7 @@ void DesktopCapturerWrapper::OnCaptureResult(
bool DesktopCapturerWrapper::SupportsFrameCallbacks() {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
return capturer_ && IsRunningWayland();
#else
return false;
|