blob: 4451d51f4e423b037f52dee61864188ce2101831 (
plain) (
tree)
|
|
--- ui/ozone/platform/wayland/ozone_platform_wayland.cc.orig 2024-05-21 18:07:39 UTC
+++ ui/ozone/platform/wayland/ozone_platform_wayland.cc
@@ -67,13 +67,13 @@
#include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
#endif
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "ui/ozone/platform/wayland/host/wayland_cursor_factory.h"
#else
#include "ui/ozone/common/bitmap_cursor_factory.h"
#endif
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "ui/ozone/platform/wayland/host/linux_ui_delegate_wayland.h"
#endif
@@ -268,7 +268,7 @@ class OzonePlatformWayland : public OzonePlatform,
buffer_manager_connector_ = std::make_unique<WaylandBufferManagerConnector>(
connection_->buffer_manager_host());
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
cursor_factory_ = std::make_unique<WaylandCursorFactory>(connection_.get());
#else
cursor_factory_ = std::make_unique<BitmapCursorFactory>();
@@ -278,7 +278,7 @@ class OzonePlatformWayland : public OzonePlatform,
supported_buffer_formats_ =
connection_->buffer_manager_host()->GetSupportedBufferFormats();
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
linux_ui_delegate_ =
std::make_unique<LinuxUiDelegateWayland>(connection_.get());
#endif
@@ -344,7 +344,7 @@ class OzonePlatformWayland : public OzonePlatform,
properties->supports_global_screen_coordinates =
kDefaultScreenCoordinateEnabled;
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// TODO(crbug.com/40800718): Revisit (and maybe remove) once proper
// support, probably backed by org.freedesktop.portal.Screenshot.PickColor
// API is implemented. Note: this is restricted to Linux Desktop as Lacros
@@ -535,7 +535,7 @@ class OzonePlatformWayland : public OzonePlatform,
DrmRenderNodePathFinder path_finder_;
#endif
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
std::unique_ptr<LinuxUiDelegateWayland> linux_ui_delegate_;
#endif
};
|