OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/test/fake_layer_tree_host.h" | 5 #include "cc/test/fake_layer_tree_host.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/single_thread_task_runner.h" |
8 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
9 #include "cc/animation/animation_host.h" | 10 #include "cc/animation/animation_host.h" |
10 #include "cc/layers/layer.h" | 11 #include "cc/layers/layer.h" |
11 #include "cc/test/test_task_graph_runner.h" | 12 #include "cc/test/test_task_graph_runner.h" |
12 #include "cc/trees/mutator_host.h" | 13 #include "cc/trees/mutator_host.h" |
13 | 14 |
14 namespace cc { | 15 namespace cc { |
15 | 16 |
16 FakeLayerTreeHost::FakeLayerTreeHost(FakeLayerTreeHostClient* client, | 17 FakeLayerTreeHost::FakeLayerTreeHost(FakeLayerTreeHostClient* client, |
17 LayerTreeHost::InitParams* params, | 18 LayerTreeHost::InitParams* params, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(), | 96 TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(), |
96 pending_tree()); | 97 pending_tree()); |
97 mutator_host()->PushPropertiesTo(host_impl_.mutator_host()); | 98 mutator_host()->PushPropertiesTo(host_impl_.mutator_host()); |
98 | 99 |
99 pending_tree()->property_trees()->scroll_tree.PushScrollUpdatesFromMainThread( | 100 pending_tree()->property_trees()->scroll_tree.PushScrollUpdatesFromMainThread( |
100 property_trees(), pending_tree()); | 101 property_trees(), pending_tree()); |
101 return pending_tree()->root_layer_for_testing(); | 102 return pending_tree()->root_layer_for_testing(); |
102 } | 103 } |
103 | 104 |
104 } // namespace cc | 105 } // namespace cc |
OLD | NEW |