diff options
Diffstat (limited to 'devel/electron29/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc')
-rw-r--r-- | devel/electron29/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc b/devel/electron29/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc new file mode 100644 index 000000000000..08e6fd773f47 --- /dev/null +++ b/devel/electron29/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc @@ -0,0 +1,20 @@ +--- components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc.orig 2024-02-27 21:36:00 UTC ++++ components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc +@@ -110,7 +110,7 @@ RootCompositorFrameSinkImpl::Create( + output_surface->SetNeedsSwapSizeNotifications( + params->send_swap_size_notifications); + +-#if BUILDFLAG(IS_LINUX) && BUILDFLAG(IS_OZONE_X11) ++#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && BUILDFLAG(IS_OZONE_X11) + // For X11, we need notify client about swap completion after resizing, so the + // client can use it for synchronize with X11 WM. + output_surface->SetNeedsSwapSizeNotifications(true); +@@ -714,7 +714,7 @@ void RootCompositorFrameSinkImpl::DisplayDidCompleteSw + #if BUILDFLAG(IS_ANDROID) + if (display_client_ && enable_swap_competion_callback_) + display_client_->DidCompleteSwapWithSize(pixel_size); +-#elif BUILDFLAG(IS_LINUX) && BUILDFLAG(IS_OZONE_X11) ++#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && BUILDFLAG(IS_OZONE_X11) + if (display_client_ && pixel_size != last_swap_pixel_size_) { + last_swap_pixel_size_ = pixel_size; + display_client_->DidCompleteSwapWithNewSize(last_swap_pixel_size_); |