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