Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 2732213008: Revert of android: Add draw completion for CompositorView (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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();
129 128
130 bool HavePendingReadbacks(); 129 bool HavePendingReadbacks();
131 void SetBackgroundColor(int color); 130 void SetBackgroundColor(int color);
132 131
133 cc::FrameSinkId frame_sink_id_; 132 cc::FrameSinkId frame_sink_id_;
134 133
135 // root_layer_ is the persistent internal root layer, while subroot_layer_ 134 // root_layer_ is the persistent internal root layer, while subroot_layer_
136 // is the one attached by the compositor client. 135 // is the one attached by the compositor client.
137 scoped_refptr<cc::Layer> subroot_layer_; 136 scoped_refptr<cc::Layer> subroot_layer_;
138 137
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash> 177 std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash>
179 pending_child_frame_sink_ids_; 178 pending_child_frame_sink_ids_;
180 base::WeakPtrFactory<CompositorImpl> weak_factory_; 179 base::WeakPtrFactory<CompositorImpl> weak_factory_;
181 180
182 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 181 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
183 }; 182 };
184 183
185 } // namespace content 184 } // namespace content
186 185
187 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 186 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/compositor/compositor_view.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698