Unverified Commit bfdc32fc authored by Dan Field's avatar Dan Field Committed by GitHub

Revert "[Impeller] Plumb through the impeller-force-gl flag." (#140535)

Reverts flutter/flutter#123828

Fixes https://github.com/flutter/flutter/issues/140523
parent f667376c
...@@ -665,8 +665,6 @@ class AndroidDevice extends Device { ...@@ -665,8 +665,6 @@ class AndroidDevice extends Device {
...<String>['--ez', 'enable-impeller', 'false'], ...<String>['--ez', 'enable-impeller', 'false'],
if (debuggingOptions.enableVulkanValidation) if (debuggingOptions.enableVulkanValidation)
...<String>['--ez', 'enable-vulkan-validation', 'true'], ...<String>['--ez', 'enable-vulkan-validation', 'true'],
if (debuggingOptions.impellerForceGL)
...<String>['--ez', 'impeller-force-gl', 'true'],
if (debuggingOptions.debuggingEnabled) ...<String>[ if (debuggingOptions.debuggingEnabled) ...<String>[
if (debuggingOptions.buildInfo.isDebug) ...<String>[ if (debuggingOptions.buildInfo.isDebug) ...<String>[
...<String>['--ez', 'enable-checked-mode', 'true'], ...<String>['--ez', 'enable-checked-mode', 'true'],
......
...@@ -195,7 +195,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment ...@@ -195,7 +195,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
usesFatalWarningsOption(verboseHelp: verboseHelp); usesFatalWarningsOption(verboseHelp: verboseHelp);
addEnableImpellerFlag(verboseHelp: verboseHelp); addEnableImpellerFlag(verboseHelp: verboseHelp);
addEnableVulkanValidationFlag(verboseHelp: verboseHelp); addEnableVulkanValidationFlag(verboseHelp: verboseHelp);
addImpellerForceGLFlag(verboseHelp: verboseHelp);
addEnableEmbedderApiFlag(verboseHelp: verboseHelp); addEnableEmbedderApiFlag(verboseHelp: verboseHelp);
} }
...@@ -210,7 +209,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment ...@@ -210,7 +209,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
bool get trackWidgetCreation => boolArg('track-widget-creation'); bool get trackWidgetCreation => boolArg('track-widget-creation');
ImpellerStatus get enableImpeller => ImpellerStatus.fromBool(argResults!['enable-impeller'] as bool?); ImpellerStatus get enableImpeller => ImpellerStatus.fromBool(argResults!['enable-impeller'] as bool?);
bool get enableVulkanValidation => boolArg('enable-vulkan-validation'); bool get enableVulkanValidation => boolArg('enable-vulkan-validation');
bool get impellerForceGL => boolArg('impeller-force-gl');
bool get uninstallFirst => boolArg('uninstall-first'); bool get uninstallFirst => boolArg('uninstall-first');
bool get enableEmbedderApi => boolArg('enable-embedder-api'); bool get enableEmbedderApi => boolArg('enable-embedder-api');
...@@ -261,7 +259,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment ...@@ -261,7 +259,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
webHeaders: webHeaders, webHeaders: webHeaders,
enableImpeller: enableImpeller, enableImpeller: enableImpeller,
enableVulkanValidation: enableVulkanValidation, enableVulkanValidation: enableVulkanValidation,
impellerForceGL: impellerForceGL,
uninstallFirst: uninstallFirst, uninstallFirst: uninstallFirst,
enableDartProfiling: enableDartProfiling, enableDartProfiling: enableDartProfiling,
enableEmbedderApi: enableEmbedderApi, enableEmbedderApi: enableEmbedderApi,
...@@ -316,7 +313,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment ...@@ -316,7 +313,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
nativeNullAssertions: boolArg('native-null-assertions'), nativeNullAssertions: boolArg('native-null-assertions'),
enableImpeller: enableImpeller, enableImpeller: enableImpeller,
enableVulkanValidation: enableVulkanValidation, enableVulkanValidation: enableVulkanValidation,
impellerForceGL: impellerForceGL,
uninstallFirst: uninstallFirst, uninstallFirst: uninstallFirst,
serveObservatory: boolArg('serve-observatory'), serveObservatory: boolArg('serve-observatory'),
enableDartProfiling: enableDartProfiling, enableDartProfiling: enableDartProfiling,
......
...@@ -955,7 +955,6 @@ class DebuggingOptions { ...@@ -955,7 +955,6 @@ class DebuggingOptions {
this.nativeNullAssertions = false, this.nativeNullAssertions = false,
this.enableImpeller = ImpellerStatus.platformDefault, this.enableImpeller = ImpellerStatus.platformDefault,
this.enableVulkanValidation = false, this.enableVulkanValidation = false,
this.impellerForceGL = false,
this.uninstallFirst = false, this.uninstallFirst = false,
this.serveObservatory = false, this.serveObservatory = false,
this.enableDartProfiling = true, this.enableDartProfiling = true,
...@@ -982,7 +981,6 @@ class DebuggingOptions { ...@@ -982,7 +981,6 @@ class DebuggingOptions {
this.traceAllowlist, this.traceAllowlist,
this.enableImpeller = ImpellerStatus.platformDefault, this.enableImpeller = ImpellerStatus.platformDefault,
this.enableVulkanValidation = false, this.enableVulkanValidation = false,
this.impellerForceGL = false,
this.uninstallFirst = false, this.uninstallFirst = false,
this.enableDartProfiling = true, this.enableDartProfiling = true,
this.enableEmbedderApi = false, this.enableEmbedderApi = false,
...@@ -1063,7 +1061,6 @@ class DebuggingOptions { ...@@ -1063,7 +1061,6 @@ class DebuggingOptions {
required this.nativeNullAssertions, required this.nativeNullAssertions,
required this.enableImpeller, required this.enableImpeller,
required this.enableVulkanValidation, required this.enableVulkanValidation,
required this.impellerForceGL,
required this.uninstallFirst, required this.uninstallFirst,
required this.serveObservatory, required this.serveObservatory,
required this.enableDartProfiling, required this.enableDartProfiling,
...@@ -1108,7 +1105,6 @@ class DebuggingOptions { ...@@ -1108,7 +1105,6 @@ class DebuggingOptions {
final bool webUseSseForInjectedClient; final bool webUseSseForInjectedClient;
final ImpellerStatus enableImpeller; final ImpellerStatus enableImpeller;
final bool enableVulkanValidation; final bool enableVulkanValidation;
final bool impellerForceGL;
final bool serveObservatory; final bool serveObservatory;
final bool enableDartProfiling; final bool enableDartProfiling;
final bool enableEmbedderApi; final bool enableEmbedderApi;
...@@ -1255,7 +1251,6 @@ class DebuggingOptions { ...@@ -1255,7 +1251,6 @@ class DebuggingOptions {
'nativeNullAssertions': nativeNullAssertions, 'nativeNullAssertions': nativeNullAssertions,
'enableImpeller': enableImpeller.asBool, 'enableImpeller': enableImpeller.asBool,
'enableVulkanValidation': enableVulkanValidation, 'enableVulkanValidation': enableVulkanValidation,
'impellerForceGL': impellerForceGL,
'serveObservatory': serveObservatory, 'serveObservatory': serveObservatory,
'enableDartProfiling': enableDartProfiling, 'enableDartProfiling': enableDartProfiling,
'enableEmbedderApi': enableEmbedderApi, 'enableEmbedderApi': enableEmbedderApi,
...@@ -1310,7 +1305,6 @@ class DebuggingOptions { ...@@ -1310,7 +1305,6 @@ class DebuggingOptions {
nativeNullAssertions: json['nativeNullAssertions']! as bool, nativeNullAssertions: json['nativeNullAssertions']! as bool,
enableImpeller: ImpellerStatus.fromBool(json['enableImpeller'] as bool?), enableImpeller: ImpellerStatus.fromBool(json['enableImpeller'] as bool?),
enableVulkanValidation: (json['enableVulkanValidation'] as bool?) ?? false, enableVulkanValidation: (json['enableVulkanValidation'] as bool?) ?? false,
impellerForceGL: (json['impellerForceGL'] as bool?) ?? false,
uninstallFirst: (json['uninstallFirst'] as bool?) ?? false, uninstallFirst: (json['uninstallFirst'] as bool?) ?? false,
serveObservatory: (json['serveObservatory'] as bool?) ?? false, serveObservatory: (json['serveObservatory'] as bool?) ?? false,
enableDartProfiling: (json['enableDartProfiling'] as bool?) ?? true, enableDartProfiling: (json['enableDartProfiling'] as bool?) ?? true,
......
...@@ -1141,16 +1141,6 @@ abstract class FlutterCommand extends Command<void> { ...@@ -1141,16 +1141,6 @@ abstract class FlutterCommand extends Command<void> {
); );
} }
void addImpellerForceGLFlag({required bool verboseHelp}) {
argParser.addFlag('impeller-force-gl',
hide: !verboseHelp,
help: 'On platforms that support OpenGL Rendering using Impeller, force '
'rendering using OpenGL over other APIs. If Impeller is not '
'enabled or the platform does not support OpenGL ES, this flag '
'does nothing.',
);
}
void addEnableEmbedderApiFlag({required bool verboseHelp}) { void addEnableEmbedderApiFlag({required bool verboseHelp}) {
argParser.addFlag('enable-embedder-api', argParser.addFlag('enable-embedder-api',
hide: !verboseHelp, hide: !verboseHelp,
......
...@@ -1227,7 +1227,6 @@ void main() { ...@@ -1227,7 +1227,6 @@ void main() {
'--native-null-assertions', '--native-null-assertions',
'--enable-impeller', '--enable-impeller',
'--enable-vulkan-validation', '--enable-vulkan-validation',
'--impeller-force-gl',
'--trace-systrace', '--trace-systrace',
'--enable-software-rendering', '--enable-software-rendering',
'--skia-deterministic-rendering', '--skia-deterministic-rendering',
...@@ -1249,7 +1248,6 @@ void main() { ...@@ -1249,7 +1248,6 @@ void main() {
expect(options.traceSystrace, true); expect(options.traceSystrace, true);
expect(options.enableImpeller, ImpellerStatus.enabled); expect(options.enableImpeller, ImpellerStatus.enabled);
expect(options.enableVulkanValidation, true); expect(options.enableVulkanValidation, true);
expect(options.impellerForceGL, true);
expect(options.enableSoftwareRendering, true); expect(options.enableSoftwareRendering, true);
expect(options.skiaDeterministicRendering, true); expect(options.skiaDeterministicRendering, true);
expect(options.usingCISystem, true); expect(options.usingCISystem, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment