mirror of
https://git.freebsd.org/ports.git
synced 2025-07-04 10:59:14 -04:00
29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
--- remoting/host/desktop_capturer_proxy.cc.orig 2023-08-17 07:33:31 UTC
|
|
+++ remoting/host/desktop_capturer_proxy.cc
|
|
@@ -26,7 +26,7 @@
|
|
#include "remoting/host/chromeos/frame_sink_desktop_capturer.h"
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
#include "base/environment.h"
|
|
#include "base/nix/xdg_util.h"
|
|
#include "remoting/host/linux/wayland_desktop_capturer.h"
|
|
@@ -89,7 +89,7 @@ void DesktopCapturerProxy::Core::CreateCapturer(
|
|
|
|
#if BUILDFLAG(IS_CHROMEOS_ASH)
|
|
capturer_ = std::make_unique<FrameSinkDesktopCapturer>();
|
|
-#elif BUILDFLAG(IS_LINUX)
|
|
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
static base::nix::SessionType session_type = base::nix::SessionType::kUnset;
|
|
if (session_type == base::nix::SessionType::kUnset) {
|
|
std::unique_ptr<base::Environment> env = base::Environment::Create();
|
|
@@ -293,7 +293,7 @@ void DesktopCapturerProxy::OnMetadata(webrtc::DesktopC
|
|
bool DesktopCapturerProxy::SupportsFrameCallbacks() {
|
|
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
return IsRunningWayland();
|
|
#else
|
|
return false;
|