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

Unified Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 1921533008: Add support for OutputSurface for Vulkan on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use vulkan flag + other review comments. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/compositor_impl_android.h
diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
index a578205914e71ca195619942b6cb5067b794ab32..2261631cdd42fe52946048f0836fbb4a2e1ecd42 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -34,6 +34,7 @@ class LayerTreeHost;
class OnscreenDisplayClient;
class SurfaceIdAllocator;
class SurfaceManager;
+class VulkanInProcessContextProvider;
}
namespace content {
@@ -122,6 +123,9 @@ class CONTENT_EXPORT CompositorImpl
void OnGpuChannelEstablished();
void OnGpuChannelTimeout();
+ scoped_refptr<cc::VulkanInProcessContextProvider>
+ SharedVulkanContextProviderAndroid();
+
// root_layer_ is the persistent internal root layer, while subroot_layer_
// is the one attached by the compositor client.
scoped_refptr<cc::Layer> root_layer_;
@@ -165,6 +169,10 @@ class CONTENT_EXPORT CompositorImpl
gpu::Capabilities gpu_capabilities_;
bool needs_begin_frames_;
+
+ scoped_refptr<cc::VulkanInProcessContextProvider>
+ shared_vulkan_context_provider_android_;
+
base::WeakPtrFactory<CompositorImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(CompositorImpl);

Powered by Google App Engine
This is Rietveld 408576698