[flutter_tools] add support for --enable-impeller to test device. (#140899)

This allows unit tests to use the impeller backend, which can be useful for Scubas/golden tests.
This commit is contained in:
Jonah Williams
2024-01-03 11:14:49 -08:00
committed by GitHub
parent 0e11246b62
commit 0d378ed5ab
3 changed files with 26 additions and 2 deletions

View File

@@ -109,8 +109,13 @@ class FlutterTesterTestDevice extends TestDevice {
if (icudtlPath != null) '--icu-data-file-path=$icudtlPath',
'--enable-checked-mode',
'--verify-entry-points',
'--enable-software-rendering',
'--skia-deterministic-rendering',
if (debuggingOptions.enableImpeller == ImpellerStatus.enabled)
'--enable-impeller'
else
...<String>[
'--enable-software-rendering',
'--skia-deterministic-rendering',
],
if (debuggingOptions.enableDartProfiling)
'--enable-dart-profiling',
'--non-interactive',