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 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_H_ |
6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_ | 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include "cc/debug/micro_benchmark_controller.h" | 8 #include "cc/debug/micro_benchmark_controller.h" |
9 #include "cc/test/fake_impl_proxy.h" | 9 #include "cc/test/fake_impl_proxy.h" |
10 #include "cc/test/fake_layer_tree_host_client.h" | 10 #include "cc/test/fake_layer_tree_host_client.h" |
11 #include "cc/test/fake_layer_tree_host_impl.h" | 11 #include "cc/test/fake_layer_tree_host_impl.h" |
12 #include "cc/test/test_shared_bitmap_manager.h" | 12 #include "cc/test/test_shared_bitmap_manager.h" |
13 #include "cc/trees/layer_tree_host.h" | 13 #include "cc/trees/layer_tree_host.h" |
14 #include "cc/trees/layer_tree_impl.h" | 14 #include "cc/trees/layer_tree_impl.h" |
15 #include "cc/trees/tree_synchronizer.h" | 15 #include "cc/trees/tree_synchronizer.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
| 18 class TestTaskGraphRunner; |
18 | 19 |
19 class FakeLayerTreeHost : public LayerTreeHost { | 20 class FakeLayerTreeHost : public LayerTreeHost { |
20 public: | 21 public: |
21 static scoped_ptr<FakeLayerTreeHost> Create(FakeLayerTreeHostClient* client); | |
22 static scoped_ptr<FakeLayerTreeHost> Create( | 22 static scoped_ptr<FakeLayerTreeHost> Create( |
23 FakeLayerTreeHostClient* client, | 23 FakeLayerTreeHostClient* client, |
| 24 TestTaskGraphRunner* task_graph_runner); |
| 25 static scoped_ptr<FakeLayerTreeHost> Create( |
| 26 FakeLayerTreeHostClient* client, |
| 27 TestTaskGraphRunner* task_graph_runner, |
24 const LayerTreeSettings& settings); | 28 const LayerTreeSettings& settings); |
25 | 29 |
26 ~FakeLayerTreeHost() override; | 30 ~FakeLayerTreeHost() override; |
27 | 31 |
28 void SetNeedsCommit() override; | 32 void SetNeedsCommit() override; |
29 void SetNeedsFullTreeSync() override {} | 33 void SetNeedsFullTreeSync() override {} |
30 | 34 |
31 using LayerTreeHost::SetRootLayer; | 35 using LayerTreeHost::SetRootLayer; |
32 using LayerTreeHost::root_layer; | 36 using LayerTreeHost::root_layer; |
33 | 37 |
(...skipping 25 matching lines...) Expand all Loading... |
59 FakeImplProxy proxy_; | 63 FakeImplProxy proxy_; |
60 FakeLayerTreeHostClient* client_; | 64 FakeLayerTreeHostClient* client_; |
61 TestSharedBitmapManager manager_; | 65 TestSharedBitmapManager manager_; |
62 FakeLayerTreeHostImpl host_impl_; | 66 FakeLayerTreeHostImpl host_impl_; |
63 bool needs_commit_; | 67 bool needs_commit_; |
64 }; | 68 }; |
65 | 69 |
66 } // namespace cc | 70 } // namespace cc |
67 | 71 |
68 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ | 72 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ |
OLD | NEW |