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

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

Issue 2297933002: blimp: Set up the CompositorDependencies for blimp in Chrome. (Closed)
Patch Set: change to a Gpu Channel callback Created 4 years, 3 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 base::TimeDelta vsync_period) override; 119 base::TimeDelta vsync_period) override;
120 void SetNeedsAnimate() override; 120 void SetNeedsAnimate() override;
121 void SetVisible(bool visible); 121 void SetVisible(bool visible);
122 void CreateLayerTreeHost(); 122 void CreateLayerTreeHost();
123 123
124 void HandlePendingOutputSurfaceRequest(); 124 void HandlePendingOutputSurfaceRequest();
125 125
126 #if defined(ENABLE_VULKAN) 126 #if defined(ENABLE_VULKAN)
127 void CreateVulkanOutputSurface(); 127 void CreateVulkanOutputSurface();
128 #endif 128 #endif
129 void CreateCompositorOutputSurface( 129 void OnGpuChannelEstablished(
130 const scoped_refptr<cc::ContextProvider>& context_provider, 130 const scoped_refptr<gpu::GpuChannelHost>& gpu_channel_host,
131 ui::ContextProviderFactory::ContextCreationResult result); 131 ui::ContextProviderFactory::GpuChannelHostResult result);
132 void InitializeDisplay( 132 void InitializeDisplay(
133 std::unique_ptr<cc::OutputSurface> display_output_surface, 133 std::unique_ptr<cc::OutputSurface> display_output_surface,
134 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, 134 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider,
135 scoped_refptr<cc::ContextProvider> context_provider); 135 scoped_refptr<cc::ContextProvider> context_provider);
136 136
137 bool HavePendingReadbacks(); 137 bool HavePendingReadbacks();
138 138
139 // root_layer_ is the persistent internal root layer, while subroot_layer_ 139 // root_layer_ is the persistent internal root layer, while subroot_layer_
140 // is the one attached by the compositor client. 140 // is the one attached by the compositor client.
141 scoped_refptr<cc::Layer> subroot_layer_; 141 scoped_refptr<cc::Layer> subroot_layer_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 gpu::Capabilities gpu_capabilities_; 180 gpu::Capabilities gpu_capabilities_;
181 bool needs_begin_frames_; 181 bool needs_begin_frames_;
182 base::WeakPtrFactory<CompositorImpl> weak_factory_; 182 base::WeakPtrFactory<CompositorImpl> weak_factory_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 184 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
185 }; 185 };
186 186
187 } // namespace content 187 } // namespace content
188 188
189 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 189 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698