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

Unified Diff: cc/test/fake_layer_tree_host.cc

Issue 2159513003: Setup LayerTree class, refactor 2 functions from LayerTreeHost to it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Layer GetLayerTree now directly uses LayerTree pointer. Created 4 years, 5 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 9e68fa337127e74b73d6108593dfb84d86ce0d91..ac270c9b938ba2da9e88f206737a96b229294380 100644
--- a/cc/test/fake_layer_tree_host.cc
+++ b/cc/test/fake_layer_tree_host.cc
@@ -89,7 +89,7 @@ void FakeLayerTreeHost::SetNeedsCommit() { needs_commit_ = true; }
LayerImpl* FakeLayerTreeHost::CommitAndCreateLayerImplTree() {
TreeSynchronizer::SynchronizeTrees(root_layer(), active_tree());
active_tree()->SetPropertyTrees(property_trees());
- TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(),
+ TreeSynchronizer::PushLayerProperties(root_layer()->GetLayerTree(),
active_tree());
animation_host()->PushPropertiesTo(host_impl_.animation_host());
@@ -111,7 +111,7 @@ LayerImpl* FakeLayerTreeHost::CommitAndCreateLayerImplTree() {
LayerImpl* FakeLayerTreeHost::CommitAndCreatePendingTree() {
TreeSynchronizer::SynchronizeTrees(root_layer(), pending_tree());
pending_tree()->SetPropertyTrees(property_trees());
- TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(),
+ TreeSynchronizer::PushLayerProperties(root_layer()->GetLayerTree(),
pending_tree());
animation_host()->PushPropertiesTo(host_impl_.animation_host());

Powered by Google App Engine
This is Rietveld 408576698