| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 std::unique_ptr<LayerTreeHostClientForTesting> client_; | 193 std::unique_ptr<LayerTreeHostClientForTesting> client_; |
| 194 std::unique_ptr<LayerTreeHost> layer_tree_host_; | 194 std::unique_ptr<LayerTreeHost> layer_tree_host_; |
| 195 | 195 |
| 196 // The LayerTreeHost created by the cc embedder on the client in remote mode. | 196 // The LayerTreeHost created by the cc embedder on the client in remote mode. |
| 197 std::unique_ptr<LayerTreeHostForTesting> remote_client_layer_tree_host_; | 197 std::unique_ptr<LayerTreeHostForTesting> remote_client_layer_tree_host_; |
| 198 | 198 |
| 199 FakeOutputSurface* output_surface_; | 199 FakeOutputSurface* output_surface_; |
| 200 FakeExternalBeginFrameSource* external_begin_frame_source_; | 200 FakeExternalBeginFrameSource* external_begin_frame_source_; |
| 201 RemoteProtoChannelBridge remote_proto_channel_bridge_; | 201 RemoteProtoChannelBridge remote_proto_channel_bridge_; |
| 202 | 202 |
| 203 std::unique_ptr<ImageSerializationProcessor> image_serialization_processor_; |
| 204 |
| 203 bool beginning_; | 205 bool beginning_; |
| 204 bool end_when_begin_returns_; | 206 bool end_when_begin_returns_; |
| 205 bool timed_out_; | 207 bool timed_out_; |
| 206 bool scheduled_; | 208 bool scheduled_; |
| 207 bool started_; | 209 bool started_; |
| 208 bool ended_; | 210 bool ended_; |
| 209 bool delegating_renderer_; | 211 bool delegating_renderer_; |
| 210 | 212 |
| 211 int timeout_seconds_; | 213 int timeout_seconds_; |
| 212 | 214 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 275 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
| 274 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 276 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
| 275 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 277 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
| 276 | 278 |
| 277 // Some tests want to control when notify ready for activation occurs, | 279 // Some tests want to control when notify ready for activation occurs, |
| 278 // but this is not supported in the single-threaded case. | 280 // but this is not supported in the single-threaded case. |
| 279 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 281 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
| 280 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 282 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 281 | 283 |
| 282 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 284 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
| OLD | NEW |