| 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_task_runner_provider.h" | 9 #include "cc/test/fake_impl_task_runner_provider.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" | |
| 13 #include "cc/trees/layer_tree_host_in_process.h" | 12 #include "cc/trees/layer_tree_host_in_process.h" |
| 14 #include "cc/trees/layer_tree_impl.h" | 13 #include "cc/trees/layer_tree_impl.h" |
| 15 #include "cc/trees/tree_synchronizer.h" | 14 #include "cc/trees/tree_synchronizer.h" |
| 16 | 15 |
| 17 namespace cc { | 16 namespace cc { |
| 18 class ImageSerializationProcessor; | 17 class ImageSerializationProcessor; |
| 19 class TestTaskGraphRunner; | 18 class TestTaskGraphRunner; |
| 20 | 19 |
| 21 class FakeLayerTreeHost : public LayerTreeHostInProcess { | 20 class FakeLayerTreeHost : public LayerTreeHostInProcess { |
| 22 public: | 21 public: |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 82 |
| 84 bool needs_commit() { return needs_commit_; } | 83 bool needs_commit() { return needs_commit_; } |
| 85 | 84 |
| 86 FakeLayerTreeHost(FakeLayerTreeHostClient* client, | 85 FakeLayerTreeHost(FakeLayerTreeHostClient* client, |
| 87 LayerTreeHostInProcess::InitParams* params, | 86 LayerTreeHostInProcess::InitParams* params, |
| 88 CompositorMode mode); | 87 CompositorMode mode); |
| 89 | 88 |
| 90 private: | 89 private: |
| 91 FakeImplTaskRunnerProvider task_runner_provider_; | 90 FakeImplTaskRunnerProvider task_runner_provider_; |
| 92 FakeLayerTreeHostClient* client_; | 91 FakeLayerTreeHostClient* client_; |
| 93 TestSharedBitmapManager manager_; | |
| 94 FakeLayerTreeHostImpl host_impl_; | 92 FakeLayerTreeHostImpl host_impl_; |
| 95 bool needs_commit_; | 93 bool needs_commit_; |
| 96 }; | 94 }; |
| 97 | 95 |
| 98 } // namespace cc | 96 } // namespace cc |
| 99 | 97 |
| 100 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ | 98 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ |
| OLD | NEW |