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

Unified Diff: cc/test/fake_layer_tree_host.cc

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix call site in cc_perftest. 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
Index: cc/test/fake_layer_tree_host.cc
diff --git a/cc/test/fake_layer_tree_host.cc b/cc/test/fake_layer_tree_host.cc
index 9d3ae6fd2eb717d3f3a5d9733e916074ef4efca9..e6adb34d4b36747182dc84ab925d08dff575c19a 100644
--- a/cc/test/fake_layer_tree_host.cc
+++ b/cc/test/fake_layer_tree_host.cc
@@ -92,7 +92,8 @@ LayerImpl* FakeLayerTreeHost::CommitAndCreateLayerImplTree() {
active_tree()->SetPropertyTrees(property_trees());
TreeSynchronizer::PushLayerProperties(root_layer()->GetLayerTree(),
active_tree());
- animation_host()->PushPropertiesTo(host_impl_.animation_host());
+ GetLayerTree()->animation_host()->PushPropertiesTo(
Khushal 2016/08/15 17:46:39 You can make the |layer_tree_| a protected member
xingliu 2016/08/15 21:29:12 Done.
+ host_impl_.animation_host());
active_tree()->UpdatePropertyTreeScrollOffset(property_trees());
@@ -114,7 +115,8 @@ LayerImpl* FakeLayerTreeHost::CommitAndCreatePendingTree() {
pending_tree()->SetPropertyTrees(property_trees());
TreeSynchronizer::PushLayerProperties(root_layer()->GetLayerTree(),
pending_tree());
- animation_host()->PushPropertiesTo(host_impl_.animation_host());
+ GetLayerTree()->animation_host()->PushPropertiesTo(
+ host_impl_.animation_host());
pending_tree()->UpdatePropertyTreeScrollOffset(property_trees());
return pending_tree()->root_layer_for_testing();

Powered by Google App Engine
This is Rietveld 408576698