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 = |