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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 void DoBeginTest(); | 129 void DoBeginTest(); |
130 void Timeout(); | 130 void Timeout(); |
131 | 131 |
132 protected: | 132 protected: |
133 LayerTreeTest(); | 133 LayerTreeTest(); |
134 | 134 |
135 virtual void InitializeSettings(LayerTreeSettings* settings) {} | 135 virtual void InitializeSettings(LayerTreeSettings* settings) {} |
136 | 136 |
137 virtual void ScheduleComposite() OVERRIDE; | 137 virtual void ScheduleComposite() OVERRIDE; |
| 138 virtual void ScheduleAnimation() OVERRIDE; |
138 | 139 |
139 void RealEndTest(); | 140 void RealEndTest(); |
140 | 141 |
141 virtual void DispatchAddAnimation(Layer* layer_to_receive_animation, | 142 virtual void DispatchAddAnimation(Layer* layer_to_receive_animation, |
142 double animation_duration); | 143 double animation_duration); |
143 void DispatchSetNeedsCommit(); | 144 void DispatchSetNeedsCommit(); |
144 void DispatchSetNeedsUpdateLayers(); | 145 void DispatchSetNeedsUpdateLayers(); |
145 void DispatchReadback(); | 146 void DispatchReadback(); |
146 void DispatchAcquireLayerTextures(); | 147 void DispatchAcquireLayerTextures(); |
147 void DispatchSetNeedsRedraw(); | 148 void DispatchSetNeedsRedraw(); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 281 |
281 #define SINGLE_AND_MULTI_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME) \ | 282 #define SINGLE_AND_MULTI_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME) \ |
282 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ | 283 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ |
283 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME) | 284 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME) |
284 | 285 |
285 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 286 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
286 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 287 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
287 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 288 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
288 | 289 |
289 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 290 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
OLD | NEW |