| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 void PostAddAnimationToMainThread(Layer* layer_to_receive_animation); | 137 void PostAddAnimationToMainThread(Layer* layer_to_receive_animation); |
| 138 void PostAddInstantAnimationToMainThread(Layer* layer_to_receive_animation); | 138 void PostAddInstantAnimationToMainThread(Layer* layer_to_receive_animation); |
| 139 void PostAddLongAnimationToMainThread(Layer* layer_to_receive_animation); | 139 void PostAddLongAnimationToMainThread(Layer* layer_to_receive_animation); |
| 140 void PostSetNeedsCommitToMainThread(); | 140 void PostSetNeedsCommitToMainThread(); |
| 141 void PostSetNeedsUpdateLayersToMainThread(); | 141 void PostSetNeedsUpdateLayersToMainThread(); |
| 142 void PostSetNeedsRedrawToMainThread(); | 142 void PostSetNeedsRedrawToMainThread(); |
| 143 void PostSetNeedsRedrawRectToMainThread(const gfx::Rect& damage_rect); | 143 void PostSetNeedsRedrawRectToMainThread(const gfx::Rect& damage_rect); |
| 144 void PostSetVisibleToMainThread(bool visible); | 144 void PostSetVisibleToMainThread(bool visible); |
| 145 void PostSetNextCommitForcesRedrawToMainThread(); | 145 void PostSetNextCommitForcesRedrawToMainThread(); |
| 146 void PostCompositeImmediatelyToMainThread(); | 146 void PostCompositeImmediatelyToMainThread(); |
| 147 void PostEndTestToMainThread(); | |
| 148 | 147 |
| 149 void DoBeginTest(); | 148 void DoBeginTest(); |
| 150 void Timeout(); | 149 void Timeout(); |
| 151 | 150 |
| 152 bool verify_property_trees() const { return verify_property_trees_; } | 151 bool verify_property_trees() const { return verify_property_trees_; } |
| 153 void set_verify_property_trees(bool verify_property_trees) { | 152 void set_verify_property_trees(bool verify_property_trees) { |
| 154 verify_property_trees_ = verify_property_trees; | 153 verify_property_trees_ = verify_property_trees; |
| 155 } | 154 } |
| 156 | 155 |
| 157 protected: | 156 protected: |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 370 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
| 372 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 371 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
| 373 | 372 |
| 374 // Some tests want to control when notify ready for activation occurs, | 373 // Some tests want to control when notify ready for activation occurs, |
| 375 // but this is not supported in the single-threaded case. | 374 // but this is not supported in the single-threaded case. |
| 376 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 375 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
| 377 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ | 376 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ |
| 378 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 377 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 379 | 378 |
| 380 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 379 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
| OLD | NEW |