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