[go: nahoru, domu]

Ensure Vulkan tests only run when enable_vulkan build flag is set

Bug: 963446,960795
Change-Id: I3b50117bfae33aa1f36425d156ee780313937035
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1645383
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Commit-Queue: Saman Sami <samans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#666369}
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index 97de94d..772e7b9 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -775,13 +775,13 @@
       "//gpu/vulkan:test_support",
       "//gpu/vulkan/init",
     ]
-  }
 
-  # TODO(samans): Support more configurations.
-  # CFI issue: https://crbug.com/967819
-  # x86 issue: https://crbug.com/967831
-  if (use_x11 && target_cpu != "x86" && !is_cfi) {
-    defines = [ "ENABLE_CC_VULKAN_TESTS" ]
+    # TODO(samans): Support more configurations.
+    # CFI issue: https://crbug.com/967819
+    # x86 issue: https://crbug.com/967831
+    if (use_x11 && target_cpu != "x86" && !is_cfi) {
+      defines = [ "ENABLE_CC_VULKAN_TESTS" ]
+    }
   }
 }