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

Revert "[Impeller] Temporary flag flip for devicelab tests to use Impeller redux."
This commit is contained in:
Jonah Williams
2023-03-10 08:16:30 -08:00
committed by GitHub
parent 5753b6158b
commit e98c53751e
21 changed files with 21 additions and 47 deletions

View File

@@ -15,8 +15,6 @@ 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;
@@ -448,13 +446,6 @@ 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))
@@ -462,8 +453,7 @@ 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,