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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void DidCommit() override; | 105 void DidCommit() override; |
106 void DidCommitAndDrawFrame() override {} | 106 void DidCommitAndDrawFrame() override {} |
107 void DidCompleteSwapBuffers() override; | 107 void DidCompleteSwapBuffers() override; |
108 void DidCompletePageScaleAnimation() override {} | 108 void DidCompletePageScaleAnimation() override {} |
109 | 109 |
110 // LayerTreeHostSingleThreadClient implementation. | 110 // LayerTreeHostSingleThreadClient implementation. |
111 void DidPostSwapBuffers() override; | 111 void DidPostSwapBuffers() override; |
112 void DidAbortSwapBuffers() override; | 112 void DidAbortSwapBuffers() override; |
113 | 113 |
114 // WindowAndroidCompositor implementation. | 114 // WindowAndroidCompositor implementation. |
| 115 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override; |
115 void RequestCopyOfOutputOnRootLayer( | 116 void RequestCopyOfOutputOnRootLayer( |
116 std::unique_ptr<cc::CopyOutputRequest> request) override; | 117 std::unique_ptr<cc::CopyOutputRequest> request) override; |
117 void OnVSync(base::TimeTicks frame_time, | 118 void OnVSync(base::TimeTicks frame_time, |
118 base::TimeDelta vsync_period) override; | 119 base::TimeDelta vsync_period) override; |
119 void SetNeedsAnimate() override; | 120 void SetNeedsAnimate() override; |
120 void SetVisible(bool visible); | 121 void SetVisible(bool visible); |
121 void CreateLayerTreeHost(); | 122 void CreateLayerTreeHost(); |
122 | 123 |
123 void HandlePendingOutputSurfaceRequest(); | 124 void HandlePendingOutputSurfaceRequest(); |
124 | 125 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 gpu::Capabilities gpu_capabilities_; | 174 gpu::Capabilities gpu_capabilities_; |
174 bool needs_begin_frames_; | 175 bool needs_begin_frames_; |
175 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 176 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
176 | 177 |
177 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 178 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
178 }; | 179 }; |
179 | 180 |
180 } // namespace content | 181 } // namespace content |
181 | 182 |
182 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 183 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |