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

Unified Diff: cc/surfaces/compositor_frame_sink_support_unittest.cc

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: More Init 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/compositor_frame_sink_support_unittest.cc
diff --git a/cc/surfaces/compositor_frame_sink_support_unittest.cc b/cc/surfaces/compositor_frame_sink_support_unittest.cc
index 44771bfffaaa919917cefdf9d9ddd0cc19da079f..060c31d18a85f51f82d8a3bc7b7c32a7fe0137ca 100644
--- a/cc/surfaces/compositor_frame_sink_support_unittest.cc
+++ b/cc/surfaces/compositor_frame_sink_support_unittest.cc
@@ -178,18 +178,22 @@ class CompositorFrameSinkSupportTest : public testing::Test {
&support_client_, &surface_manager_, kDisplayFrameSink,
true /* is_root */, true /* handles_frame_sink_id_invalidation */,
true /* needs_sync_points */));
+ supports_.back()->Init();
supports_.push_back(base::MakeUnique<CompositorFrameSinkSupport>(
&support_client_, &surface_manager_, kParentFrameSink,
false /* is_root */, true /* handles_frame_sink_id_invalidation */,
true /* needs_sync_points */));
+ supports_.back()->Init();
supports_.push_back(base::MakeUnique<CompositorFrameSinkSupport>(
&support_client_, &surface_manager_, kChildFrameSink1,
false /* is_root */, true /* handles_frame_sink_id_invalidation */,
true /* needs_sync_points */));
+ supports_.back()->Init();
supports_.push_back(base::MakeUnique<CompositorFrameSinkSupport>(
&support_client_, &surface_manager_, kChildFrameSink2,
false /* is_root */, true /* handles_frame_sink_id_invalidation */,
true /* needs_sync_points */));
+ supports_.back()->Init();
// Normally, the BeginFrameSource would be registered by the Display. We
// register it here so that BeginFrames are received by the display support,

Powered by Google App Engine
This is Rietveld 408576698