Chromium Code Reviews| Index: BUILD.gn |
| diff --git a/BUILD.gn b/BUILD.gn |
| index 4e78a1c61991a73b07ba01abaf712f62be8925db..2fceefc65f4f12d73fbdf68de8bd20a7cc935a51 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. |
|
mtklein
2016/09/21 13:47:43
Let's start then with !is_fuchsia && is_debug.
egdaniel
2016/09/21 13:52:36
Done.
|
| + skia_enable_vulkan_debug_layers = 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" ] |
| + } |
| } |
| } |