Don't enable SwiftShader on Linux platforms if X11 is not available

Compilation currently requires <xcb/xcb.h>

Bug: chromium:1266550, b:209030951
Change-Id: I2d0b6a36fc252bc141aaac26059b4d8f3150f635
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/77300
Auto-Submit: Austin Eng <enga@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Loko Kung <lokokung@google.com>
diff --git a/scripts/dawn_features.gni b/scripts/dawn_features.gni
index d00ab62..1f5bfaa 100644
--- a/scripts/dawn_features.gni
+++ b/scripts/dawn_features.gni
@@ -34,7 +34,9 @@
 
   # Enables SwiftShader as the fallback adapter. Requires dawn_swiftshader_dir
   # to be set to take effect.
-  dawn_use_swiftshader = true
+  # TODO(crbug.com/1266550): Enable on Linux platforms without X11 (e.g. ChromeOS).
+  # Blocked on b/209030951
+  dawn_use_swiftshader = !is_linux || dawn_use_x11
 }
 
 declare_args() {