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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.cc

Issue 2612083002: DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: Address comments and revert changes in Android 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 9a6347f146602e13ddc0e7a36ba5759fb34f825f..37e8a9d95d6c3267ccd0bbaa16ac0ddd7c1f479b 100644
--- a/components/display_compositor/gpu_compositor_frame_sink.cc
+++ b/components/display_compositor/gpu_compositor_frame_sink.cc
@@ -12,17 +12,12 @@ GpuCompositorFrameSink::GpuCompositorFrameSink(
GpuCompositorFrameSinkDelegate* delegate,
cc::SurfaceManager* surface_manager,
const cc::FrameSinkId& frame_sink_id,
- std::unique_ptr<cc::Display> display,
- std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
+ cc::Display* display,
cc::mojom::MojoCompositorFrameSinkPrivateRequest
compositor_frame_sink_private_request,
cc::mojom::MojoCompositorFrameSinkClientPtr client)
: delegate_(delegate),
- support_(this,
- surface_manager,
- frame_sink_id,
- std::move(display),
- std::move(begin_frame_source)),
+ support_(this, surface_manager, frame_sink_id, display, true, true),
Fady Samuel 2017/02/07 17:42:18 Please specify what these trues mean: e.g. true /*
Alex Z. 2017/02/07 17:47:50 Done.
danakj 2017/02/07 17:47:55 can you put a comment beside these boolean literal
Alex Z. 2017/02/07 17:51:33 Done.
surface_manager_(surface_manager),
surface_tracker_(frame_sink_id),
client_(std::move(client)),

Powered by Google App Engine
This is Rietveld 408576698