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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 LayerTreeHostImpl* host_impl) {} | 59 LayerTreeHostImpl* host_impl) {} |
60 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, | 60 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, |
61 bool visible) {} | 61 bool visible) {} |
62 virtual void AnimateLayers(LayerTreeHostImpl* host_impl, | 62 virtual void AnimateLayers(LayerTreeHostImpl* host_impl, |
63 base::TimeTicks monotonic_time) {} | 63 base::TimeTicks monotonic_time) {} |
64 virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl, | 64 virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl, |
65 bool has_unfinished_animation) {} | 65 bool has_unfinished_animation) {} |
66 virtual void WillAnimateLayers(LayerTreeHostImpl* host_impl, | 66 virtual void WillAnimateLayers(LayerTreeHostImpl* host_impl, |
67 base::TimeTicks monotonic_time) {} | 67 base::TimeTicks monotonic_time) {} |
68 virtual void DidInvalidateContentOnImplSide(LayerTreeHostImpl* host_impl) {} | 68 virtual void DidInvalidateContentOnImplSide(LayerTreeHostImpl* host_impl) {} |
| 69 virtual void DidReceiveImplSideInvalidationRequest( |
| 70 LayerTreeHostImpl* host_impl) {} |
69 virtual void DidRequestImplSideInvalidation(LayerTreeHostImpl* host_impl) {} | 71 virtual void DidRequestImplSideInvalidation(LayerTreeHostImpl* host_impl) {} |
70 | 72 |
71 // Asynchronous compositor thread hooks. | 73 // Asynchronous compositor thread hooks. |
72 // These are called asynchronously from the LayerTreeHostImpl performing its | 74 // These are called asynchronously from the LayerTreeHostImpl performing its |
73 // draw, so you should record state you want to use here in | 75 // draw, so you should record state you want to use here in |
74 // DrawLayersOnThread() instead. For that reason these methods do not receive | 76 // DrawLayersOnThread() instead. For that reason these methods do not receive |
75 // a LayerTreeHostImpl pointer. | 77 // a LayerTreeHostImpl pointer. |
76 virtual void DisplayReceivedLocalSurfaceIdOnThread( | 78 virtual void DisplayReceivedLocalSurfaceIdOnThread( |
77 const LocalSurfaceId& local_surface_id) {} | 79 const LocalSurfaceId& local_surface_id) {} |
78 virtual void DisplayReceivedCompositorFrameOnThread( | 80 virtual void DisplayReceivedCompositorFrameOnThread( |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // OutputSurface indirections to the LayerTreeTest, that can be further | 125 // OutputSurface indirections to the LayerTreeTest, that can be further |
124 // overridden. | 126 // overridden. |
125 virtual void RequestNewLayerTreeFrameSink() = 0; | 127 virtual void RequestNewLayerTreeFrameSink() = 0; |
126 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( | 128 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( |
127 scoped_refptr<ContextProvider> compositor_context_provider) = 0; | 129 scoped_refptr<ContextProvider> compositor_context_provider) = 0; |
128 }; | 130 }; |
129 | 131 |
130 } // namespace cc | 132 } // namespace cc |
131 | 133 |
132 #endif // CC_TEST_TEST_HOOKS_H_ | 134 #endif // CC_TEST_TEST_HOOKS_H_ |
OLD | NEW |