OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 void RequestNewCompositorFrameSink() override; | 103 void RequestNewCompositorFrameSink() override; |
104 void DidInitializeCompositorFrameSink() override; | 104 void DidInitializeCompositorFrameSink() override; |
105 void DidFailToInitializeCompositorFrameSink() override; | 105 void DidFailToInitializeCompositorFrameSink() override; |
106 void WillCommit() override {} | 106 void WillCommit() override {} |
107 void DidCommit() override; | 107 void DidCommit() override; |
108 void DidCommitAndDrawFrame() override {} | 108 void DidCommitAndDrawFrame() override {} |
109 void DidReceiveCompositorFrameAck() override; | 109 void DidReceiveCompositorFrameAck() override; |
110 void DidCompletePageScaleAnimation() override {} | 110 void DidCompletePageScaleAnimation() override {} |
111 | 111 |
112 // LayerTreeHostSingleThreadClient implementation. | 112 // LayerTreeHostSingleThreadClient implementation. |
113 void DidPostSwapBuffers() override; | 113 void DidSubmitCompositorFrame() override; |
114 void DidAbortSwapBuffers() override; | 114 void DidLoseCompositorFrameSink() override; |
115 | 115 |
116 // WindowAndroidCompositor implementation. | 116 // WindowAndroidCompositor implementation. |
117 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override; | 117 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override; |
118 void RequestCopyOfOutputOnRootLayer( | 118 void RequestCopyOfOutputOnRootLayer( |
119 std::unique_ptr<cc::CopyOutputRequest> request) override; | 119 std::unique_ptr<cc::CopyOutputRequest> request) override; |
120 void OnVSync(base::TimeTicks frame_time, | 120 void OnVSync(base::TimeTicks frame_time, |
121 base::TimeDelta vsync_period) override; | 121 base::TimeDelta vsync_period) override; |
122 void SetNeedsAnimate() override; | 122 void SetNeedsAnimate() override; |
123 cc::FrameSinkId GetFrameSinkId() override; | 123 cc::FrameSinkId GetFrameSinkId() override; |
124 | 124 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 gpu::Capabilities gpu_capabilities_; | 185 gpu::Capabilities gpu_capabilities_; |
186 bool needs_begin_frames_; | 186 bool needs_begin_frames_; |
187 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 187 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
188 | 188 |
189 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 189 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
190 }; | 190 }; |
191 | 191 |
192 } // namespace content | 192 } // namespace content |
193 | 193 |
194 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 194 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |