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