Index: content/browser/compositor/gpu_process_transport_factory.h |
diff --git a/content/browser/compositor/gpu_process_transport_factory.h b/content/browser/compositor/gpu_process_transport_factory.h |
index a8836e253d4eb8feca4dfbef3966dda46ab57625..dff1ba3b39c203e0da4635bb90dbf2c9a2450108 100644 |
--- a/content/browser/compositor/gpu_process_transport_factory.h |
+++ b/content/browser/compositor/gpu_process_transport_factory.h |
@@ -30,6 +30,7 @@ namespace cc { |
class SingleThreadTaskGraphRunner; |
class SoftwareOutputDevice; |
class SurfaceManager; |
+class VulkanInProcessContextProvider; |
} |
namespace content { |
@@ -95,6 +96,9 @@ class GpuProcessTransportFactory |
void OnLostMainThreadSharedContextInsideCallback(); |
void OnLostMainThreadSharedContext(); |
+ scoped_refptr<cc::VulkanInProcessContextProvider> |
+ SharedVulkanContextProvider(); |
+ |
typedef std::map<ui::Compositor*, PerCompositorData*> PerCompositorDataMap; |
PerCompositorDataMap per_compositor_data_; |
scoped_refptr<ContextProviderCommandBuffer> shared_main_thread_contexts_; |
@@ -105,6 +109,10 @@ class GpuProcessTransportFactory |
std::unique_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_; |
scoped_refptr<ContextProviderCommandBuffer> shared_worker_context_provider_; |
+ bool shared_vulkan_context_provider_initialized_ = false; |
+ scoped_refptr<cc::VulkanInProcessContextProvider> |
+ shared_vulkan_context_provider_; |
+ |
#if defined(OS_WIN) |
std::unique_ptr<OutputDeviceBacking> software_backing_; |
#endif |