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

Unified Diff: cc/test/test_compositor_frame_sink.cc

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: Add CompositorFrameSinkSupport::Create 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
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink.cc ('k') | components/exo/compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_compositor_frame_sink.cc
diff --git a/cc/test/test_compositor_frame_sink.cc b/cc/test/test_compositor_frame_sink.cc
index 523874f264e269a036d8c954804923bd67e99bc7..b99dc13bdc990ba34da40afea303c023881738f8 100644
--- a/cc/test/test_compositor_frame_sink.cc
+++ b/cc/test/test_compositor_frame_sink.cc
@@ -98,10 +98,12 @@ bool TestCompositorFrameSink::BindToClient(CompositorFrameSinkClient* client) {
if (display_context_shared_with_compositor && context_provider())
context_provider()->SetLostContextCallback(base::Closure());
- support_ = base::MakeUnique<CompositorFrameSinkSupport>(
- this, surface_manager_.get(), frame_sink_id_, false /* is_root */,
- true /* handles_frame_sink_id_invalidation */,
- true /* needs_sync_points */);
+ constexpr bool is_root = false;
+ constexpr bool handles_frame_sink_id_invalidation = true;
+ constexpr bool needs_sync_points = true;
+ support_ = CompositorFrameSinkSupport::Create(
+ this, surface_manager_.get(), frame_sink_id_, is_root,
+ handles_frame_sink_id_invalidation, needs_sync_points);
client_->SetBeginFrameSource(&external_begin_frame_source_);
display_->Initialize(this, surface_manager_.get());
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink.cc ('k') | components/exo/compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698