OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TEST_HOOKS_H_ | 5 #ifndef CC_TEST_TEST_HOOKS_H_ |
6 #define CC_TEST_TEST_HOOKS_H_ | 6 #define CC_TEST_TEST_HOOKS_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "cc/animation/animation_delegate.h" | 9 #include "cc/animation/animation_delegate.h" |
10 #include "cc/trees/layer_tree_host.h" | 10 #include "cc/trees/layer_tree_host.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual void DidActivateSyncTree() {} | 83 virtual void DidActivateSyncTree() {} |
84 | 84 |
85 // Hooks for SchedulerClient. | 85 // Hooks for SchedulerClient. |
86 virtual void ScheduledActionWillSendBeginMainFrame() {} | 86 virtual void ScheduledActionWillSendBeginMainFrame() {} |
87 virtual void ScheduledActionSendBeginMainFrame() {} | 87 virtual void ScheduledActionSendBeginMainFrame() {} |
88 virtual void ScheduledActionDrawAndSwapIfPossible() {} | 88 virtual void ScheduledActionDrawAndSwapIfPossible() {} |
89 virtual void ScheduledActionCommit() {} | 89 virtual void ScheduledActionCommit() {} |
90 virtual void ScheduledActionBeginOutputSurfaceCreation() {} | 90 virtual void ScheduledActionBeginOutputSurfaceCreation() {} |
91 virtual void ScheduledActionPrepareTiles() {} | 91 virtual void ScheduledActionPrepareTiles() {} |
92 virtual void ScheduledActionInvalidateOutputSurface() {} | 92 virtual void ScheduledActionInvalidateOutputSurface() {} |
93 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} | |
94 virtual void SendBeginMainFrameNotExpectedSoon() {} | 93 virtual void SendBeginMainFrameNotExpectedSoon() {} |
95 | 94 |
96 // Hooks for ProxyImpl | 95 // Hooks for ProxyImpl |
97 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 96 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, |
98 TopControlsState current, | 97 TopControlsState current, |
99 bool animate) {} | 98 bool animate) {} |
100 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) {} | 99 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) {} |
101 virtual void MainThreadHasStoppedFlingingOnImpl() {} | 100 virtual void MainThreadHasStoppedFlingingOnImpl() {} |
102 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} | 101 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} |
103 virtual void SetDeferCommitsOnImpl(bool defer_commits) {} | 102 virtual void SetDeferCommitsOnImpl(bool defer_commits) {} |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 const proto::CompositorMessageToImpl& proto) {} | 149 const proto::CompositorMessageToImpl& proto) {} |
151 | 150 |
152 // Used to notify the test to destroy the Remote client LayerTreeHost on | 151 // Used to notify the test to destroy the Remote client LayerTreeHost on |
153 // receiving a CompositorMessageToImpl of type CLOSE_IMPL. | 152 // receiving a CompositorMessageToImpl of type CLOSE_IMPL. |
154 virtual void DestroyRemoteClientHost() {} | 153 virtual void DestroyRemoteClientHost() {} |
155 }; | 154 }; |
156 | 155 |
157 } // namespace cc | 156 } // namespace cc |
158 | 157 |
159 #endif // CC_TEST_TEST_HOOKS_H_ | 158 #endif // CC_TEST_TEST_HOOKS_H_ |
OLD | NEW |