| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYER_TREE_TEST_H_ | 5 #ifndef CC_TEST_LAYER_TREE_TEST_H_ |
| 6 #define CC_TEST_LAYER_TREE_TEST_H_ | 6 #define CC_TEST_LAYER_TREE_TEST_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
| 10 #include "cc/animation/animation_delegate.h" | 10 #include "cc/animation/animation_delegate.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 return main_task_runner_.get(); | 115 return main_task_runner_.get(); |
| 116 } | 116 } |
| 117 Proxy* proxy(); | 117 Proxy* proxy(); |
| 118 TaskRunnerProvider* task_runner_provider() const; | 118 TaskRunnerProvider* task_runner_provider() const; |
| 119 TaskGraphRunner* task_graph_runner() const { | 119 TaskGraphRunner* task_graph_runner() const { |
| 120 return task_graph_runner_.get(); | 120 return task_graph_runner_.get(); |
| 121 } | 121 } |
| 122 bool TestEnded() const { return ended_; } | 122 bool TestEnded() const { return ended_; } |
| 123 | 123 |
| 124 LayerTreeHost* layer_tree_host(); | 124 LayerTreeHost* layer_tree_host(); |
| 125 LayerTree* layer_tree() { return layer_tree_host()->GetLayerTree(); } | |
| 126 SharedBitmapManager* shared_bitmap_manager() const { | 125 SharedBitmapManager* shared_bitmap_manager() const { |
| 127 return shared_bitmap_manager_.get(); | 126 return shared_bitmap_manager_.get(); |
| 128 } | 127 } |
| 129 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() { | 128 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() { |
| 130 return gpu_memory_buffer_manager_.get(); | 129 return gpu_memory_buffer_manager_.get(); |
| 131 } | 130 } |
| 132 | 131 |
| 133 void DestroyLayerTreeHost(); | 132 void DestroyLayerTreeHost(); |
| 134 | 133 |
| 135 // By default, output surface recreation is synchronous. | 134 // By default, output surface recreation is synchronous. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 #define REMOTE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 216 #define REMOTE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
| 218 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \ | 217 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \ |
| 219 REMOTE_TEST_F(TEST_FIXTURE_NAME) | 218 REMOTE_TEST_F(TEST_FIXTURE_NAME) |
| 220 | 219 |
| 221 // Some tests want to control when notify ready for activation occurs, | 220 // Some tests want to control when notify ready for activation occurs, |
| 222 // but this is not supported in the single-threaded case. | 221 // but this is not supported in the single-threaded case. |
| 223 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 222 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
| 224 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 223 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 225 | 224 |
| 226 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 225 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
| OLD | NEW |