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

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: changed namespace to gpu:: 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
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | gpu/vulkan/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 958e40dc2425ed98eb86178d01f2bfdb879d4a2c..4491ac8c6e6b70cb75bdf862d0eef94c58d6cd50 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.
+ gpu::VulkanSurface::InitializeOneOff();
+#endif
+
// Load and initialize the GL implementation and locate the GL entry points.
bool gl_initialized =
gl_already_initialized
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | gpu/vulkan/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698