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

Unified Diff: content/browser/browser_main_loop.cc

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

Powered by Google App Engine
This is Rietveld 408576698