[flutter_tool] Adds a flag to disable Impeller (#122960)

This commit is contained in:
Zachary Anderson
2023-03-20 22:23:23 -07:00
committed by GitHub
parent e260dd2ad2
commit 7e88acfb0e
20 changed files with 104 additions and 47 deletions

View File

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