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

Unified Diff: ui/compositor/compositor.cc

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on another LTH refactor CL. Created 4 years, 4 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 | « third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp ('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 8b6943fba96260715199828fae69b358e876b69b..f36e09d59ce8851e2f2ed873b1dd4fe98bacca6c 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -218,7 +218,8 @@ Compositor::Compositor(ui::ContextFactory* context_factory,
animation_timeline_ =
cc::AnimationTimeline::Create(cc::AnimationIdProvider::NextTimelineId());
- host_->animation_host()->AddAnimationTimeline(animation_timeline_.get());
+ host_->GetLayerTree()->animation_host()->AddAnimationTimeline(
+ animation_timeline_.get());
host_->GetLayerTree()->SetRootLayer(root_web_layer_);
host_->set_surface_client_id(surface_id_allocator_->client_id());
@@ -241,7 +242,8 @@ Compositor::~Compositor() {
root_layer_->ResetCompositor();
if (animation_timeline_)
- host_->animation_host()->RemoveAnimationTimeline(animation_timeline_.get());
+ host_->GetLayerTree()->animation_host()->RemoveAnimationTimeline(
+ animation_timeline_.get());
// Stop all outstanding draws before telling the ContextFactory to tear
// down any contexts that the |host_| may rely upon.
« no previous file with comments | « third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698