| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index d36ad98996496a25dad5f3bda1ef0a0484c97caa..1f77258d8df738cac0a5efbef2df7b78dd3e1711 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -185,6 +185,10 @@
|
| #include "ui/views/mus/window_manager_connection.h"
|
| #endif
|
|
|
| +#if defined(ENABLE_VULKAN)
|
| +#include "gpu/vulkan/vulkan_implementation.h"
|
| +#endif
|
| +
|
| // One of the linux specific headers defines this as a macro.
|
| #ifdef DestroyAll
|
| #undef DestroyAll
|
| @@ -1188,6 +1192,13 @@ int BrowserMainLoop::BrowserThreadsStarted() {
|
| base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority::DISPLAY);
|
| #endif
|
|
|
| +#if defined(ENABLE_VULKAN)
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableVulkan)) {
|
| + gpu::InitializeVulkan();
|
| + }
|
| +#endif
|
| +
|
| bool always_uses_gpu = true;
|
| bool established_gpu_channel = false;
|
| #if defined(OS_ANDROID)
|
|
|