aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-ui_compositor_compositor__observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-ui_compositor_compositor__observer.h')
-rw-r--r--devel/electron13/files/patch-ui_compositor_compositor__observer.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-ui_compositor_compositor__observer.h b/devel/electron13/files/patch-ui_compositor_compositor__observer.h
new file mode 100644
index 000000000000..0090bd1242f8
--- /dev/null
+++ b/devel/electron13/files/patch-ui_compositor_compositor__observer.h
@@ -0,0 +1,16 @@
+--- ui/compositor/compositor_observer.h.orig 2021-07-15 19:14:08 UTC
++++ ui/compositor/compositor_observer.h
+@@ -48,11 +48,11 @@ class COMPOSITOR_EXPORT CompositorObserver {
+
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
++#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD)
+ // Called when a swap with new size is completed.
+ virtual void OnCompositingCompleteSwapWithNewSize(ui::Compositor* compositor,
+ const gfx::Size& size) {}
+-#endif // defined(OS_LINUX) || defined(OS_CHROMEOS)
++#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+
+ // Called at the top of the compositor's destructor, to give observers a
+ // chance to remove themselves.