| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) {} | 93 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} |
| 94 virtual void SendBeginMainFrameNotExpectedSoon() {} | 94 virtual void SendBeginMainFrameNotExpectedSoon() {} |
| 95 | 95 |
| 96 // Hooks for ProxyImpl | 96 // Hooks for ProxyImpl |
| 97 virtual void SetThrottleFrameProductionOnImpl(bool throttle) {} | |
| 98 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 97 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, |
| 99 TopControlsState current, | 98 TopControlsState current, |
| 100 bool animate) {} | 99 bool animate) {} |
| 101 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) {} | 100 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) {} |
| 102 virtual void MainThreadHasStoppedFlingingOnImpl() {} | 101 virtual void MainThreadHasStoppedFlingingOnImpl() {} |
| 103 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} | 102 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} |
| 104 virtual void SetDeferCommitsOnImpl(bool defer_commits) {} | 103 virtual void SetDeferCommitsOnImpl(bool defer_commits) {} |
| 105 virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) {} | 104 virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) {} |
| 106 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) {} | 105 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) {} |
| 107 virtual void SetNeedsCommitOnImpl() {} | 106 virtual void SetNeedsCommitOnImpl() {} |
| (...skipping 42 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 |