Chromium Code Reviews| 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(); |