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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 void DidPostSwapBuffers() override; | 112 void DidPostSwapBuffers() override; |
113 void DidAbortSwapBuffers() override; | 113 void DidAbortSwapBuffers() override; |
114 | 114 |
115 // WindowAndroidCompositor implementation. | 115 // WindowAndroidCompositor implementation. |
116 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override; | 116 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override; |
117 void RequestCopyOfOutputOnRootLayer( | 117 void RequestCopyOfOutputOnRootLayer( |
118 std::unique_ptr<cc::CopyOutputRequest> request) override; | 118 std::unique_ptr<cc::CopyOutputRequest> request) override; |
119 void OnVSync(base::TimeTicks frame_time, | 119 void OnVSync(base::TimeTicks frame_time, |
120 base::TimeDelta vsync_period) override; | 120 base::TimeDelta vsync_period) override; |
121 void SetNeedsAnimate() override; | 121 void SetNeedsAnimate() override; |
122 uint32_t GetSurfaceClientId() override; | 122 cc::FrameSinkId GetFrameSinkId() override; |
123 | 123 |
124 void SetVisible(bool visible); | 124 void SetVisible(bool visible); |
125 void CreateLayerTreeHost(); | 125 void CreateLayerTreeHost(); |
126 | 126 |
127 void HandlePendingCompositorFrameSinkRequest(); | 127 void HandlePendingCompositorFrameSinkRequest(); |
128 | 128 |
129 #if defined(ENABLE_VULKAN) | 129 #if defined(ENABLE_VULKAN) |
130 void CreateVulkanOutputSurface(); | 130 void CreateVulkanOutputSurface(); |
131 #endif | 131 #endif |
132 void OnGpuChannelEstablished( | 132 void OnGpuChannelEstablished( |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 gpu::Capabilities gpu_capabilities_; | 183 gpu::Capabilities gpu_capabilities_; |
184 bool needs_begin_frames_; | 184 bool needs_begin_frames_; |
185 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 185 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
186 | 186 |
187 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 187 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
188 }; | 188 }; |
189 | 189 |
190 } // namespace content | 190 } // namespace content |
191 | 191 |
192 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 192 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |