| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 } | 139 } |
| 140 Proxy* proxy() const { | 140 Proxy* proxy() const { |
| 141 return layer_tree_host_ ? layer_tree_host_->proxy() : NULL; | 141 return layer_tree_host_ ? layer_tree_host_->proxy() : NULL; |
| 142 } | 142 } |
| 143 Proxy* remote_client_proxy() const; | 143 Proxy* remote_client_proxy() const; |
| 144 TaskRunnerProvider* task_runner_provider() const; | 144 TaskRunnerProvider* task_runner_provider() const; |
| 145 TaskGraphRunner* task_graph_runner() const; | 145 TaskGraphRunner* task_graph_runner() const; |
| 146 bool TestEnded() const { return ended_; } | 146 bool TestEnded() const { return ended_; } |
| 147 | 147 |
| 148 LayerTreeHost* layer_tree_host(); | 148 LayerTreeHost* layer_tree_host(); |
| 149 LayerTreeHost* remote_client_layer_tree_host(); |
| 149 bool delegating_renderer() const { return delegating_renderer_; } | 150 bool delegating_renderer() const { return delegating_renderer_; } |
| 150 FakeOutputSurface* output_surface() { return output_surface_; } | 151 FakeOutputSurface* output_surface() { return output_surface_; } |
| 151 | 152 |
| 152 // Use these only for tests in threaded or remote mode. | 153 // Use these only for tests in threaded or remote mode. |
| 153 ProxyMainForTest* GetProxyMainForTest() const; | 154 ProxyMainForTest* GetProxyMainForTest() const; |
| 154 ProxyImplForTest* GetProxyImplForTest() const; | 155 ProxyImplForTest* GetProxyImplForTest() const; |
| 155 | 156 |
| 156 // Use this only for tests in threaded mode. | 157 // Use this only for tests in threaded mode. |
| 157 ThreadedChannelForTest* GetThreadedChannelForTest() const; | 158 ThreadedChannelForTest* GetThreadedChannelForTest() const; |
| 158 | 159 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 271 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
| 271 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 272 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
| 272 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 273 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
| 273 | 274 |
| 274 // Some tests want to control when notify ready for activation occurs, | 275 // Some tests want to control when notify ready for activation occurs, |
| 275 // but this is not supported in the single-threaded case. | 276 // but this is not supported in the single-threaded case. |
| 276 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 277 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
| 277 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 278 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 278 | 279 |
| 279 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 280 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
| OLD | NEW |