| 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" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 FakeLayerTreeHostImpl* host_impl() { return &host_impl_; } | 60 FakeLayerTreeHostImpl* host_impl() { return &host_impl_; } |
| 61 LayerTreeImpl* active_tree() { return host_impl_.active_tree(); } | 61 LayerTreeImpl* active_tree() { return host_impl_.active_tree(); } |
| 62 LayerTreeImpl* pending_tree() { return host_impl_.pending_tree(); } | 62 LayerTreeImpl* pending_tree() { return host_impl_.pending_tree(); } |
| 63 | 63 |
| 64 using LayerTreeHost::ScheduleMicroBenchmark; | 64 using LayerTreeHost::ScheduleMicroBenchmark; |
| 65 using LayerTreeHost::SendMessageToMicroBenchmark; | 65 using LayerTreeHost::SendMessageToMicroBenchmark; |
| 66 using LayerTreeHost::SetOutputSurfaceLostForTesting; | 66 using LayerTreeHost::SetOutputSurfaceLostForTesting; |
| 67 using LayerTreeHost::InitializeSingleThreaded; | 67 using LayerTreeHost::InitializeSingleThreaded; |
| 68 using LayerTreeHost::InitializeForTesting; | 68 using LayerTreeHost::InitializeForTesting; |
| 69 using LayerTreeHost::InitializePictureCacheForTesting; |
| 69 using LayerTreeHost::RecordGpuRasterizationHistogram; | 70 using LayerTreeHost::RecordGpuRasterizationHistogram; |
| 70 | 71 |
| 71 void UpdateLayers() { LayerTreeHost::UpdateLayers(); } | 72 void UpdateLayers() { LayerTreeHost::UpdateLayers(); } |
| 72 | 73 |
| 73 MicroBenchmarkController* GetMicroBenchmarkController() { | 74 MicroBenchmarkController* GetMicroBenchmarkController() { |
| 74 return µ_benchmark_controller_; | 75 return µ_benchmark_controller_; |
| 75 } | 76 } |
| 76 | 77 |
| 77 bool needs_commit() { return needs_commit_; } | 78 bool needs_commit() { return needs_commit_; } |
| 78 | 79 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 93 FakeLayerTreeHostImpl host_impl_; | 94 FakeLayerTreeHostImpl host_impl_; |
| 94 bool needs_commit_; | 95 bool needs_commit_; |
| 95 | 96 |
| 96 bool renderer_capabilities_set; | 97 bool renderer_capabilities_set; |
| 97 RendererCapabilities renderer_capabilities; | 98 RendererCapabilities renderer_capabilities; |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace cc | 101 } // namespace cc |
| 101 | 102 |
| 102 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ | 103 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ |
| OLD | NEW |