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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 private: | 200 private: |
201 LayerTreeSettings settings_; | 201 LayerTreeSettings settings_; |
202 scoped_ptr<LayerTreeHostClientForTesting> client_; | 202 scoped_ptr<LayerTreeHostClientForTesting> client_; |
203 scoped_ptr<LayerTreeHost> layer_tree_host_; | 203 scoped_ptr<LayerTreeHost> layer_tree_host_; |
204 FakeOutputSurface* output_surface_; | 204 FakeOutputSurface* output_surface_; |
205 | 205 |
206 bool beginning_; | 206 bool beginning_; |
207 bool end_when_begin_returns_; | 207 bool end_when_begin_returns_; |
208 bool timed_out_; | 208 bool timed_out_; |
209 bool scheduled_; | 209 bool scheduled_; |
210 bool schedule_when_set_visible_true_; | |
211 bool started_; | 210 bool started_; |
212 bool ended_; | 211 bool ended_; |
213 bool delegating_renderer_; | 212 bool delegating_renderer_; |
214 | 213 |
215 int timeout_seconds_; | 214 int timeout_seconds_; |
216 | 215 |
217 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 216 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
218 scoped_ptr<base::Thread> impl_thread_; | 217 scoped_ptr<base::Thread> impl_thread_; |
219 base::CancelableClosure timeout_; | 218 base::CancelableClosure timeout_; |
220 scoped_refptr<TestContextProvider> compositor_contexts_; | 219 scoped_refptr<TestContextProvider> compositor_contexts_; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 292 |
294 #define SINGLE_AND_MULTI_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME) \ | 293 #define SINGLE_AND_MULTI_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME) \ |
295 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ | 294 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ |
296 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME) | 295 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME) |
297 | 296 |
298 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 297 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
299 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 298 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
300 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 299 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
301 | 300 |
302 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 301 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
OLD | NEW |