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

Unified Diff: components/exo/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: components/exo/compositor_frame_sink.cc
diff --git a/components/exo/compositor_frame_sink.cc b/components/exo/compositor_frame_sink.cc
index 9b7a34ce804f4b2b264f946f07ae4cc70fd065cf..3bdd740998f4b9b4bb2c1083e60259d3f9197111 100644
--- a/components/exo/compositor_frame_sink.cc
+++ b/components/exo/compositor_frame_sink.cc
@@ -19,12 +19,13 @@ CompositorFrameSink::CompositorFrameSink(const cc::FrameSinkId& frame_sink_id,
cc::SurfaceManager* surface_manager,
CompositorFrameSinkHolder* client)
: support_(this,
- surface_manager,
frame_sink_id,
false /* is_root */,
- true /* handles_frame_sink_id_invalidation */,
- true /* needs_sync_points */),
- client_(client) {}
+ true /* handles_frame_sink_id_invalidation */),
+ client_(client) {
+ constexpr bool needs_sync_points = true;
+ support_.Init(surface_manager, needs_sync_points);
+}
CompositorFrameSink::~CompositorFrameSink() {}

Powered by Google App Engine
This is Rietveld 408576698