Index: content/gpu/gpu_child_thread.cc |
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc |
index 1bb3df07e35f42846c9f352ac69012eda1b1bc1c..369cd4dd947fdcd33afd16480a09c50ab1aae539 100644 |
--- a/content/gpu/gpu_child_thread.cc |
+++ b/content/gpu/gpu_child_thread.cc |
@@ -40,6 +40,10 @@ |
#include "ui/ozone/public/ozone_platform.h" |
#endif |
+#if defined(ENABLE_VULKAN) |
+#include "gpu/vulkan/vulkan_surface.h" |
+#endif |
+ |
namespace content { |
namespace { |
@@ -200,6 +204,11 @@ GpuChildThread::GpuChildThread( |
gpu_info_.video_decode_accelerator_capabilities = |
content::GpuVideoDecodeAccelerator::GetCapabilities(); |
+#if defined(ENABLE_VULKAN) |
+ // Temporary Vulkan initialization injection. |
+ gpu::VulkanSurface::InitializeOneOff(); |
+#endif |
+ |
if (!gfx::GLSurface::InitializeOneOff()) |
VLOG(1) << "gfx::GLSurface::InitializeOneOff failed"; |