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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual void DidFailToInitializeOutputSurface() {} | 82 virtual void DidFailToInitializeOutputSurface() {} |
83 virtual void DidAddAnimation() {} | 83 virtual void DidAddAnimation() {} |
84 virtual void WillCommit() {} | 84 virtual void WillCommit() {} |
85 virtual void DidCommit() {} | 85 virtual void DidCommit() {} |
86 virtual void DidCommitAndDrawFrame() {} | 86 virtual void DidCommitAndDrawFrame() {} |
87 virtual void DidCompleteSwapBuffers() {} | 87 virtual void DidCompleteSwapBuffers() {} |
88 virtual void DidDeferCommit() {} | 88 virtual void DidDeferCommit() {} |
89 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, | 89 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, |
90 bool visible) {} | 90 bool visible) {} |
91 virtual void ScheduleComposite() {} | 91 virtual void ScheduleComposite() {} |
| 92 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} |
92 | 93 |
93 // Hooks for SchedulerClient. | 94 // Hooks for SchedulerClient. |
94 virtual void ScheduledActionWillSendBeginMainFrame() {} | 95 virtual void ScheduledActionWillSendBeginMainFrame() {} |
95 virtual void ScheduledActionSendBeginMainFrame() {} | 96 virtual void ScheduledActionSendBeginMainFrame() {} |
96 virtual void ScheduledActionDrawAndSwapIfPossible() {} | 97 virtual void ScheduledActionDrawAndSwapIfPossible() {} |
97 virtual void ScheduledActionAnimate() {} | 98 virtual void ScheduledActionAnimate() {} |
98 virtual void ScheduledActionCommit() {} | 99 virtual void ScheduledActionCommit() {} |
99 virtual void ScheduledActionBeginOutputSurfaceCreation() {} | 100 virtual void ScheduledActionBeginOutputSurfaceCreation() {} |
100 | 101 |
101 // Implementation of AnimationDelegate: | 102 // Implementation of AnimationDelegate: |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 365 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
365 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 366 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
366 | 367 |
367 // Some tests want to control when notify ready for activation occurs, | 368 // Some tests want to control when notify ready for activation occurs, |
368 // but this is not supported in the single-threaded case. | 369 // but this is not supported in the single-threaded case. |
369 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 370 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
370 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ | 371 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ |
371 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 372 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
372 | 373 |
373 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 374 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
OLD | NEW |