Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index f1f2ced74482abe816e767196861abf9722761bd..9d41daca26450c5b3e8e58c93885ae012357b753 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 |
@@ -1214,6 +1218,13 @@ int BrowserMainLoop::BrowserThreadsStarted() { |
#endif // defined(USE_AURA) |
#endif // defined(OS_ANDROID) |
+#if defined(ENABLE_VULKAN) |
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableVulkan)) { |
+ gpu::InitializeVulkan(); |
+ } |
+#endif |
piman
2016/04/19 23:42:02
nit: move to before ImageTransportFactory::Initial
David Yen
2016/04/20 17:37:38
Done.
|
+ |
// Enable the GpuMemoryBuffer dump provider with IO thread affinity. Note that |
// unregistration happens on the IO thread (See |
// BrowserProcessSubThread::IOThreadPreCleanUp). |