| 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; |
| 123 |
| 122 void SetVisible(bool visible); | 124 void SetVisible(bool visible); |
| 123 void CreateLayerTreeHost(); | 125 void CreateLayerTreeHost(); |
| 124 | 126 |
| 125 void HandlePendingCompositorFrameSinkRequest(); | 127 void HandlePendingCompositorFrameSinkRequest(); |
| 126 | 128 |
| 127 #if defined(ENABLE_VULKAN) | 129 #if defined(ENABLE_VULKAN) |
| 128 void CreateVulkanOutputSurface(); | 130 void CreateVulkanOutputSurface(); |
| 129 #endif | 131 #endif |
| 130 void OnGpuChannelEstablished( | 132 void OnGpuChannelEstablished( |
| 131 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host, | 133 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 gpu::Capabilities gpu_capabilities_; | 183 gpu::Capabilities gpu_capabilities_; |
| 182 bool needs_begin_frames_; | 184 bool needs_begin_frames_; |
| 183 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 185 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 184 | 186 |
| 185 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 187 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 186 }; | 188 }; |
| 187 | 189 |
| 188 } // namespace content | 190 } // namespace content |
| 189 | 191 |
| 190 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 192 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |