[Impeller] Temporary flag flip for devicelab tests to use Impeller redux. (#122340)

This commit is contained in:
Jonah Williams
2023-03-09 17:45:17 -08:00
committed by GitHub
parent 6ec4445063
commit de399511d6
21 changed files with 47 additions and 21 deletions

View File

@@ -15,6 +15,8 @@ import 'devices.dart';
import 'host_agent.dart';
import 'task_result.dart';
const bool kEnableImpellerDefault = true;
/// Virtual current working directory, which affect functions, such as [exec].
String cwd = Directory.current.path;
@@ -446,6 +448,13 @@ List<String> _flutterCommandArgs(String command, List<String> options) {
};
final String? localEngine = localEngineFromEnv;
final String? localEngineSrcPath = localEngineSrcPathFromEnv;
bool addEnableImpeller() {
return !options.contains('--enable-impeller')
&& deviceOperatingSystem == DeviceOperatingSystem.ios
&& (command == 'drive' || command == 'run');
}
return <String>[
command,
if (deviceOperatingSystem == DeviceOperatingSystem.ios && supportedDeviceTimeoutCommands.contains(command))
@@ -453,7 +462,8 @@ List<String> _flutterCommandArgs(String command, List<String> options) {
'--device-timeout',
'5',
],
if (addEnableImpeller())
'--enable-impeller',
if (command == 'drive' && hostAgent.dumpDirectory != null) ...<String>[
'--screenshot',
hostAgent.dumpDirectory!.path,