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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.h

Issue 1892303003: Added the Vulkan Context Provider implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export VulkanContextProvider 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/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

Powered by Google App Engine
This is Rietveld 408576698