diff --git a/packages/devtools_app/webdriver_test/web_compiler_test.dart b/packages/devtools_app/webdriver_test/web_compiler_test.dart index 7bc64c58d23..4ba497dde50 100644 --- a/packages/devtools_app/webdriver_test/web_compiler_test.dart +++ b/packages/devtools_app/webdriver_test/web_compiler_test.dart @@ -39,7 +39,19 @@ void main() { desired: { ...Capabilities.chrome, Capabilities.chromeOptions: { - 'args': ['--headless'], + 'binary': ?Platform.environment['CHROME_EXECUTABLE'], + 'args': [ + '--headless', + // Explicitly enable SwiftShader on headless Linux and Windows VMs + // without a hardware GPU so WebGL is available for the skwasm + // renderer. See https://github.com/flutter/devtools/issues/10032. + if (Platform.isLinux || Platform.isWindows) ...[ + '--use-gl=angle', + '--use-angle=swiftshader', + '--enable-unsafe-swiftshader', + '--disable-gpu-sandbox', + ], + ], }, }, );