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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 #if defined(ENABLE_VULKAN) | 118 #if defined(ENABLE_VULKAN) |
119 void CreateVulkanOutputSurface(); | 119 void CreateVulkanOutputSurface(); |
120 #endif | 120 #endif |
121 void OnGpuChannelEstablished( | 121 void OnGpuChannelEstablished( |
122 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host); | 122 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host); |
123 void OnGpuChannelTimeout(); | 123 void OnGpuChannelTimeout(); |
124 void InitializeDisplay( | 124 void InitializeDisplay( |
125 std::unique_ptr<cc::OutputSurface> display_output_surface, | 125 std::unique_ptr<cc::OutputSurface> display_output_surface, |
126 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, | 126 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, |
127 scoped_refptr<cc::ContextProvider> context_provider); | 127 scoped_refptr<cc::ContextProvider> context_provider); |
| 128 void DidSwapBuffers(); |
128 | 129 |
129 bool HavePendingReadbacks(); | 130 bool HavePendingReadbacks(); |
130 void SetBackgroundColor(int color); | 131 void SetBackgroundColor(int color); |
131 | 132 |
132 cc::FrameSinkId frame_sink_id_; | 133 cc::FrameSinkId frame_sink_id_; |
133 | 134 |
134 // root_layer_ is the persistent internal root layer, while subroot_layer_ | 135 // root_layer_ is the persistent internal root layer, while subroot_layer_ |
135 // is the one attached by the compositor client. | 136 // is the one attached by the compositor client. |
136 scoped_refptr<cc::Layer> subroot_layer_; | 137 scoped_refptr<cc::Layer> subroot_layer_; |
137 | 138 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash> | 178 std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash> |
178 pending_child_frame_sink_ids_; | 179 pending_child_frame_sink_ids_; |
179 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 180 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
180 | 181 |
181 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 182 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
182 }; | 183 }; |
183 | 184 |
184 } // namespace content | 185 } // namespace content |
185 | 186 |
186 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 187 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |