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

Unified Diff: ui/compositor/compositor.cc

Issue 1126253005: cc: Add LayerTreeHost::InitParams for LayerTreeHost creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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 | « content/test/web_layer_tree_view_impl_for_testing.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index b8a58eec2129a39fded5832fd008a9f8e8dca2ee..f80b75fe298d605fc960165d0c257b4659733907 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -140,10 +140,16 @@ Compositor::Compositor(gfx::AcceleratedWidget widget,
command_line->HasSwitch(switches::kUIEnableCompositorAnimationTimelines);
base::TimeTicks before_create = base::TimeTicks::Now();
- host_ = cc::LayerTreeHost::CreateSingleThreaded(
- this, this, context_factory_->GetSharedBitmapManager(),
- context_factory_->GetGpuMemoryBufferManager(),
- context_factory_->GetTaskGraphRunner(), settings, task_runner_, nullptr);
+
+ cc::LayerTreeHost::InitParams params;
+ params.client = this;
+ params.shared_bitmap_manager = context_factory_->GetSharedBitmapManager();
+ params.gpu_memory_buffer_manager =
+ context_factory_->GetGpuMemoryBufferManager();
+ params.task_graph_runner = context_factory_->GetTaskGraphRunner();
+ params.settings = &settings;
+ params.main_task_runner = task_runner_;
+ host_ = cc::LayerTreeHost::CreateSingleThreaded(this, &params);
UMA_HISTOGRAM_TIMES("GPU.CreateBrowserCompositor",
base::TimeTicks::Now() - before_create);
host_->SetRootLayer(root_web_layer_);
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698