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