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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual DrawResult PrepareToDrawOnThread( | 44 virtual DrawResult PrepareToDrawOnThread( |
45 LayerTreeHostImpl* host_impl, | 45 LayerTreeHostImpl* host_impl, |
46 LayerTreeHostImpl::FrameData* frame_data, | 46 LayerTreeHostImpl::FrameData* frame_data, |
47 DrawResult draw_result); | 47 DrawResult draw_result); |
48 virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) {} | 48 virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) {} |
49 virtual void NotifyReadyToActivateOnThread(LayerTreeHostImpl* host_impl) {} | 49 virtual void NotifyReadyToActivateOnThread(LayerTreeHostImpl* host_impl) {} |
50 virtual void NotifyReadyToDrawOnThread(LayerTreeHostImpl* host_impl) {} | 50 virtual void NotifyReadyToDrawOnThread(LayerTreeHostImpl* host_impl) {} |
51 virtual void NotifyAllTileTasksCompleted(LayerTreeHostImpl* host_impl) {} | 51 virtual void NotifyAllTileTasksCompleted(LayerTreeHostImpl* host_impl) {} |
52 virtual void NotifyTileStateChangedOnThread(LayerTreeHostImpl* host_impl, | 52 virtual void NotifyTileStateChangedOnThread(LayerTreeHostImpl* host_impl, |
53 const Tile* tile) {} | 53 const Tile* tile) {} |
| 54 virtual void WillReceiveCompositorFrameAckOnThread( |
| 55 LayerTreeHostImpl* host_impl) {} |
| 56 virtual void DidReceiveCompositorFrameAckOnThread( |
| 57 LayerTreeHostImpl* host_impl) {} |
54 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, | 58 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, |
55 bool visible) {} | 59 bool visible) {} |
56 virtual void AnimateLayers(LayerTreeHostImpl* host_impl, | 60 virtual void AnimateLayers(LayerTreeHostImpl* host_impl, |
57 base::TimeTicks monotonic_time) {} | 61 base::TimeTicks monotonic_time) {} |
58 virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl, | 62 virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl, |
59 bool has_unfinished_animation) {} | 63 bool has_unfinished_animation) {} |
60 virtual void WillAnimateLayers(LayerTreeHostImpl* host_impl, | 64 virtual void WillAnimateLayers(LayerTreeHostImpl* host_impl, |
61 base::TimeTicks monotonic_time) {} | 65 base::TimeTicks monotonic_time) {} |
62 virtual void DidInvalidateContentOnImplSide(LayerTreeHostImpl* host_impl) {} | 66 virtual void DidInvalidateContentOnImplSide(LayerTreeHostImpl* host_impl) {} |
63 virtual void DidRequestImplSideInvalidation(LayerTreeHostImpl* host_impl) {} | 67 virtual void DidRequestImplSideInvalidation(LayerTreeHostImpl* host_impl) {} |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // OutputSurface indirections to the LayerTreeTest, that can be further | 121 // OutputSurface indirections to the LayerTreeTest, that can be further |
118 // overridden. | 122 // overridden. |
119 virtual void RequestNewCompositorFrameSink() = 0; | 123 virtual void RequestNewCompositorFrameSink() = 0; |
120 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( | 124 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( |
121 scoped_refptr<ContextProvider> compositor_context_provider) = 0; | 125 scoped_refptr<ContextProvider> compositor_context_provider) = 0; |
122 }; | 126 }; |
123 | 127 |
124 } // namespace cc | 128 } // namespace cc |
125 | 129 |
126 #endif // CC_TEST_TEST_HOOKS_H_ | 130 #endif // CC_TEST_TEST_HOOKS_H_ |
OLD | NEW |