[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:
@@ -74,6 +74,7 @@ class TestCommand extends FlutterCommand with DeviceBasedDevelopmentArtifacts {
|
||||
usesWebRendererOption();
|
||||
usesDeviceUserOption();
|
||||
usesFlavorOption();
|
||||
addEnableImpellerFlag(verboseHelp: verboseHelp);
|
||||
|
||||
argParser
|
||||
..addMultiOption('name',
|
||||
@@ -436,6 +437,7 @@ class TestCommand extends FlutterCommand with DeviceBasedDevelopmentArtifacts {
|
||||
enableDds: enableDds,
|
||||
nullAssertions: boolArg(FlutterOptions.kNullAssertions),
|
||||
usingCISystem: usingCISystem,
|
||||
enableImpeller: ImpellerStatus.fromBool(argResults!['enable-impeller'] as bool?),
|
||||
);
|
||||
|
||||
Device? integrationTestDevice;
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user