Chromium Code Reviews| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, | 54 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, |
| 55 bool visible) {} | 55 bool visible) {} |
| 56 virtual void AnimateLayers(LayerTreeHostImpl* host_impl, | 56 virtual void AnimateLayers(LayerTreeHostImpl* host_impl, |
| 57 base::TimeTicks monotonic_time) {} | 57 base::TimeTicks monotonic_time) {} |
| 58 virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl, | 58 virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl, |
| 59 bool has_unfinished_animation) {} | 59 bool has_unfinished_animation) {} |
| 60 virtual void WillAnimateLayers(LayerTreeHostImpl* host_impl, | 60 virtual void WillAnimateLayers(LayerTreeHostImpl* host_impl, |
| 61 base::TimeTicks monotonic_time) {} | 61 base::TimeTicks monotonic_time) {} |
| 62 virtual void DidInvalidateContentOnImplSide(LayerTreeHostImpl* host_impl) {} | 62 virtual void DidInvalidateContentOnImplSide(LayerTreeHostImpl* host_impl) {} |
| 63 virtual void DidRequestImplSideInvalidation(LayerTreeHostImpl* host_impl) {} | 63 virtual void DidRequestImplSideInvalidation(LayerTreeHostImpl* host_impl) {} |
| 64 virtual void WillReceiveCompositorFrameAckOnImplThread() {} | |
|
danakj
2017/04/18 20:58:42
just "OnThread" is the convention used here, and c
Saman Sami
2017/04/18 21:37:13
Done.
| |
| 65 virtual void DidReceiveCompositorFrameAckOnImplThread() {} | |
| 64 | 66 |
| 65 // Asynchronous compositor thread hooks. | 67 // Asynchronous compositor thread hooks. |
| 66 // These are called asynchronously from the LayerTreeHostImpl performing its | 68 // These are called asynchronously from the LayerTreeHostImpl performing its |
| 67 // draw, so you should record state you want to use here in | 69 // draw, so you should record state you want to use here in |
| 68 // DrawLayersOnThread() instead. For that reason these methods do not receive | 70 // DrawLayersOnThread() instead. For that reason these methods do not receive |
| 69 // a LayerTreeHostImpl pointer. | 71 // a LayerTreeHostImpl pointer. |
| 70 virtual void DisplayReceivedLocalSurfaceIdOnThread( | 72 virtual void DisplayReceivedLocalSurfaceIdOnThread( |
| 71 const LocalSurfaceId& local_surface_id) {} | 73 const LocalSurfaceId& local_surface_id) {} |
| 72 virtual void DisplayReceivedCompositorFrameOnThread( | 74 virtual void DisplayReceivedCompositorFrameOnThread( |
| 73 const CompositorFrame& frame) {} | 75 const CompositorFrame& frame) {} |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 // OutputSurface indirections to the LayerTreeTest, that can be further | 119 // OutputSurface indirections to the LayerTreeTest, that can be further |
| 118 // overridden. | 120 // overridden. |
| 119 virtual void RequestNewCompositorFrameSink() = 0; | 121 virtual void RequestNewCompositorFrameSink() = 0; |
| 120 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( | 122 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( |
| 121 scoped_refptr<ContextProvider> compositor_context_provider) = 0; | 123 scoped_refptr<ContextProvider> compositor_context_provider) = 0; |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 } // namespace cc | 126 } // namespace cc |
| 125 | 127 |
| 126 #endif // CC_TEST_TEST_HOOKS_H_ | 128 #endif // CC_TEST_TEST_HOOKS_H_ |
| OLD | NEW |