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

Unified Diff: content/gpu/gpu_main.cc

Issue 1726303002: Added initial Vulkan build files as well as a basic implementation file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed hack to bypass loader Created 4 years, 9 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/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 958e40dc2425ed98eb86178d01f2bfdb879d4a2c..d9299383834e7f63f2e259cd8d797143e8bc1ddc 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -80,6 +80,10 @@
#include "content/common/gpu/media/vaapi_wrapper.h"
#endif
+#if defined(ENABLE_VULKAN)
+#include "gpu/vulkan/vulkan_surface.h"
+#endif
+
#if defined(SANITIZER_COVERAGE)
#include <sanitizer/common_interface_defs.h>
#include <sanitizer/coverage_interface.h>
@@ -288,6 +292,11 @@ int GpuMain(const MainFunctionParams& parameters) {
gl_already_initialized = true;
}
+#if defined(ENABLE_VULKAN)
+ // Temporary Vulkan initialization injection.
+ gfx::VulkanSurface::InitializeOneOff();
Nico 2016/03/09 02:43:33 do you need to call this both here and in the othe
David Yen 2016/03/09 18:44:49 I'm still figuring out the initialization path for
+#endif
+
// Load and initialize the GL implementation and locate the GL entry points.
bool gl_initialized =
gl_already_initialized

Powered by Google App Engine
This is Rietveld 408576698