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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // Hooks for SchedulerClient. | 92 // Hooks for SchedulerClient. |
93 virtual void WillBeginImplFrame(const BeginFrameArgs& args) {} | 93 virtual void WillBeginImplFrame(const BeginFrameArgs& args) {} |
94 virtual void ScheduledActionWillSendBeginMainFrame() {} | 94 virtual void ScheduledActionWillSendBeginMainFrame() {} |
95 virtual void ScheduledActionSendBeginMainFrame() {} | 95 virtual void ScheduledActionSendBeginMainFrame() {} |
96 virtual void ScheduledActionDrawAndSwapIfPossible() {} | 96 virtual void ScheduledActionDrawAndSwapIfPossible() {} |
97 virtual void ScheduledActionAnimate() {} | 97 virtual void ScheduledActionAnimate() {} |
98 virtual void ScheduledActionCommit() {} | 98 virtual void ScheduledActionCommit() {} |
99 virtual void ScheduledActionBeginOutputSurfaceCreation() {} | 99 virtual void ScheduledActionBeginOutputSurfaceCreation() {} |
100 virtual void ScheduledActionPrepareTiles() {} | 100 virtual void ScheduledActionPrepareTiles() {} |
| 101 virtual void ScheduledActionInvalidateOutputSurface() {} |
101 | 102 |
102 // Implementation of AnimationDelegate: | 103 // Implementation of AnimationDelegate: |
103 void NotifyAnimationStarted(base::TimeTicks monotonic_time, | 104 void NotifyAnimationStarted(base::TimeTicks monotonic_time, |
104 Animation::TargetProperty target_property, | 105 Animation::TargetProperty target_property, |
105 int group) override {} | 106 int group) override {} |
106 void NotifyAnimationFinished(base::TimeTicks monotonic_time, | 107 void NotifyAnimationFinished(base::TimeTicks monotonic_time, |
107 Animation::TargetProperty target_property, | 108 Animation::TargetProperty target_property, |
108 int group) override {} | 109 int group) override {} |
109 | 110 |
110 virtual void RequestNewOutputSurface() = 0; | 111 virtual void RequestNewOutputSurface() = 0; |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 373 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
373 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 374 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
374 | 375 |
375 // Some tests want to control when notify ready for activation occurs, | 376 // Some tests want to control when notify ready for activation occurs, |
376 // but this is not supported in the single-threaded case. | 377 // but this is not supported in the single-threaded case. |
377 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 378 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
378 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ | 379 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ |
379 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 380 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
380 | 381 |
381 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 382 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
OLD | NEW |