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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: Set needs_sync_points Created 3 years, 8 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: cc/surfaces/direct_compositor_frame_sink.cc
diff --git a/cc/surfaces/direct_compositor_frame_sink.cc b/cc/surfaces/direct_compositor_frame_sink.cc
index a3c55c0beb062fa23a1f90bef7ab42768d77aa70..f7d422cbed83011c821f424351657ba4201748cb 100644
--- a/cc/surfaces/direct_compositor_frame_sink.cc
+++ b/cc/surfaces/direct_compositor_frame_sink.cc
@@ -70,9 +70,9 @@ bool DirectCompositorFrameSink::BindToClient(
constexpr bool is_root = true;
constexpr bool handles_frame_sink_id_invalidation = false;
support_ = base::MakeUnique<CompositorFrameSinkSupport>(
- this, surface_manager_, frame_sink_id_, is_root,
- handles_frame_sink_id_invalidation,
- capabilities_.delegated_sync_points_required);
+ this, frame_sink_id_, is_root, handles_frame_sink_id_invalidation);
+ support_->Init(surface_manager_,
+ capabilities_.delegated_sync_points_required);
begin_frame_source_ = base::MakeUnique<ExternalBeginFrameSource>(this);
client_->SetBeginFrameSource(begin_frame_source_.get());

Powered by Google App Engine
This is Rietveld 408576698