Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Unified Diff: components/display_compositor/gpu_offscreen_compositor_frame_sink.cc

Issue 2683583005: Move display_ From CompositorFrameSinkSupport To GpuDisplayCompositorFrameSink (Closed)
Patch Set: addressed comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/display_compositor/gpu_offscreen_compositor_frame_sink.cc
diff --git a/components/display_compositor/gpu_offscreen_compositor_frame_sink.cc b/components/display_compositor/gpu_offscreen_compositor_frame_sink.cc
index f14f8db3e51e05e6de511ac082f8ee28dc7b2794..7c5473428620a944017b4aec18115d28cdc22944 100644
--- a/components/display_compositor/gpu_offscreen_compositor_frame_sink.cc
+++ b/components/display_compositor/gpu_offscreen_compositor_frame_sink.cc
@@ -15,9 +15,13 @@ GpuOffscreenCompositorFrameSink::GpuOffscreenCompositorFrameSink(
compositor_frame_sink_private_request,
cc::mojom::MojoCompositorFrameSinkClientPtr client)
: GpuCompositorFrameSink(delegate,
- surface_manager,
- frame_sink_id,
- nullptr,
+ base::MakeUnique<cc::CompositorFrameSinkSupport>(
+ this,
+ surface_manager,
+ frame_sink_id,
+ true /* handles_frame_sink_id_invalidation */,
+ true /* needs_sync_points */,
+ false /* submits_to_display_compositor */),
std::move(compositor_frame_sink_private_request),
std::move(client)),
binding_(this, std::move(request)) {

Powered by Google App Engine
This is Rietveld 408576698