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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.cc

Issue 2682943004: Revert of DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: 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_compositor_frame_sink.cc
diff --git a/components/display_compositor/gpu_compositor_frame_sink.cc b/components/display_compositor/gpu_compositor_frame_sink.cc
index e5d2781b57bcb6c77bc15ab317b1a4921036a71a..9a6347f146602e13ddc0e7a36ba5759fb34f825f 100644
--- a/components/display_compositor/gpu_compositor_frame_sink.cc
+++ b/components/display_compositor/gpu_compositor_frame_sink.cc
@@ -12,7 +12,8 @@
GpuCompositorFrameSinkDelegate* delegate,
cc::SurfaceManager* surface_manager,
const cc::FrameSinkId& frame_sink_id,
- cc::Display* display,
+ std::unique_ptr<cc::Display> display,
+ std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
cc::mojom::MojoCompositorFrameSinkPrivateRequest
compositor_frame_sink_private_request,
cc::mojom::MojoCompositorFrameSinkClientPtr client)
@@ -20,9 +21,8 @@
support_(this,
surface_manager,
frame_sink_id,
- display,
- true /* handles_frame_sink_id_invalidation */,
- true /* needs_sync_points */),
+ std::move(display),
+ std::move(begin_frame_source)),
surface_manager_(surface_manager),
surface_tracker_(frame_sink_id),
client_(std::move(client)),

Powered by Google App Engine
This is Rietveld 408576698