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