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

Unified Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 2108883004: Remove LayerTreeImpl::SetRootLayerFromLayerListForTesting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertytreestuff
Patch Set: Created 4 years, 6 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/layers/picture_layer_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common_unittest.cc
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index fbc500427a911a5d3b0f5090ad27d5b39015ba0f..34782b3b89295f0db319a661dd7480ec87cfffe1 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -5231,8 +5231,7 @@ TEST_F(LayerTreeHostCommonTest, OpacityAnimatingOnPendingTree) {
// But if the opacity of the layer remains 0 after activation, it should not
// be drawn.
host_impl.ActivateSyncTree();
- host_impl.active_tree()->SetRootLayerFromLayerListForTesting();
- LayerImpl* active_root = host_impl.active_tree()->root_layer_for_testing();
+ LayerImpl* active_root = host_impl.active_tree()->LayerById(root_layer->id());
LayerImpl* active_child = host_impl.active_tree()->LayerById(child_ptr->id());
EffectTree& active_effect_tree =
« no previous file with comments | « cc/layers/picture_layer_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698