[flutter_tools] pass --enable-impeller to android (#104014)

This commit is contained in:
Jonah Williams 2022-05-17 15:52:09 -07:00 committed by GitHub
parent 2cbad4b3ae
commit 2ad7ced916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -652,6 +652,8 @@ class AndroidDevice extends Device {
...<String>['--ez', 'cache-sksl', 'true'],
if (debuggingOptions.purgePersistentCache)
...<String>['--ez', 'purge-persistent-cache', 'true'],
if (debuggingOptions.enableImpeller)
...<String>['--ez', 'enable-impeller', 'true'],
if (debuggingOptions.debuggingEnabled) ...<String>[
if (debuggingOptions.buildInfo.isDebug) ...<String>[
...<String>['--ez', 'enable-checked-mode', 'true'],

View File

@ -964,7 +964,7 @@ abstract class FlutterCommand extends Command<void> {
negatable: false,
hide: !verboseHelp,
help: 'Whether to enable the experimental Impeller rendering engine. '
'Impeller is currently only supported on iOS. This flag will '
'Impeller is currently only supported on iOS and Android. This flag will '
'be ignored when targeting other platforms.',
);
}

View File

@ -241,6 +241,7 @@ void main() {
'--ez', 'dump-skp-on-shader-compilation', 'true',
'--ez', 'cache-sksl', 'true',
'--ez', 'purge-persistent-cache', 'true',
'--ez', 'enable-impeller', 'true',
'--ez', 'enable-checked-mode', 'true',
'--ez', 'verify-entry-points', 'true',
'--ez', 'start-paused', 'true',
@ -274,6 +275,7 @@ void main() {
useTestFonts: true,
verboseSystemLogs: true,
nullAssertions: true,
enableImpeller: true,
),
platformArgs: <String, dynamic>{},
userIdentifier: '10',