diff --git a/scripts/dawn_features.gni b/scripts/dawn_features.gni index 6f4f01e526..09db849b52 100644 --- a/scripts/dawn_features.gni +++ b/scripts/dawn_features.gni @@ -16,6 +16,14 @@ import("//build_overrides/build.gni") if (build_with_chromium) { import("//build/config/sanitizers/sanitizers.gni") + import("//build/config/ui.gni") + + dawn_use_x11 = use_x11 +} else { + declare_args() { + # Whether Dawn should enable X11 support. + dawn_use_x11 = is_linux && !is_chromeos + } } declare_args() { @@ -66,9 +74,6 @@ declare_args() { dawn_enable_error_injection = is_debug || (build_with_chromium && use_fuzzing_engine) - # Whether Dawn should enable X11 support. - dawn_use_x11 = is_linux && !is_chromeos - # Enable support WGSL for shaders. # Turned off for Skia, because Tint is currently not part of its DEPS. dawn_enable_wgsl = !defined(is_skia_standalone)