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

Unified Diff: cc/test/layer_test_common.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 | « cc/test/fake_layer_tree_host.cc ('k') | cc/trees/draw_property_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index bf7a0aa4df887218ac745c72041d4ed196e53355..4e6298d5a65e15158016c5ab776d4627de243fdc 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -132,16 +132,16 @@ LayerTestCommon::LayerImplTest::LayerImplTest(const LayerTreeSettings& settings)
const int timeline_id = AnimationIdProvider::NextTimelineId();
timeline_ = AnimationTimeline::Create(timeline_id);
- host_->animation_host()->AddAnimationTimeline(timeline_);
+ host_->GetLayerTree()->animation_host()->AddAnimationTimeline(timeline_);
// Create impl-side instance.
- host_->animation_host()->PushPropertiesTo(
+ host_->GetLayerTree()->animation_host()->PushPropertiesTo(
host_->host_impl()->animation_host());
timeline_impl_ =
host_->host_impl()->animation_host()->GetTimelineById(timeline_id);
}
LayerTestCommon::LayerImplTest::~LayerImplTest() {
- host_->animation_host()->RemoveAnimationTimeline(timeline_);
+ host_->GetLayerTree()->animation_host()->RemoveAnimationTimeline(timeline_);
timeline_ = nullptr;
host_->host_impl()->ReleaseOutputSurface();
}
« no previous file with comments | « cc/test/fake_layer_tree_host.cc ('k') | cc/trees/draw_property_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698