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

Unified Diff: BUILD.gn

Issue 2357953002: Add define of SK_ENABLE_VK_LAYERS to gn build (Closed)
Patch Set: turn off for fuchsia Created 4 years, 3 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 | « no previous file | infra/bots/recipe_modules/flavor/gn_android_flavor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 4e78a1c61991a73b07ba01abaf712f62be8925db..dddf118393825738741edd15a5c01cef7ed30e99 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -21,6 +21,9 @@ declare_args() {
skia_enable_android_framework_defines = false
skia_enable_gpu = true
skia_enable_tools = !is_fuchsia
+
+ # TODO: Vulkan debug layers should be disabled for all client uses of skia as well.
+ skia_enable_vulkan_debug_layers = !is_fuchsia && is_debug
}
# Our tools require static linking (they use non-exported symbols) and GPU support (just lazy).
@@ -328,6 +331,9 @@ optional("gpu") {
public_defines += [ "SK_VULKAN" ]
sources += skia_vk_sources
libs += [ "vulkan" ]
+ if (skia_enable_vulkan_debug_layers) {
+ public_defines += [ "SK_ENABLE_VK_LAYERS" ]
+ }
}
}
« no previous file with comments | « no previous file | infra/bots/recipe_modules/flavor/gn_android_flavor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698