Skip to content

Commit bfdc32f

Browse files
authored
Revert "[Impeller] Plumb through the impeller-force-gl flag." (#140535)
Reverts #123828 Fixes #140523
1 parent f667376 commit bfdc32f

File tree

5 files changed

+0
-24
lines changed

5 files changed

+0
-24
lines changed

packages/flutter_tools/lib/src/android/android_device.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,6 @@ class AndroidDevice extends Device {
665665
...<String>['--ez', 'enable-impeller', 'false'],
666666
if (debuggingOptions.enableVulkanValidation)
667667
...<String>['--ez', 'enable-vulkan-validation', 'true'],
668-
if (debuggingOptions.impellerForceGL)
669-
...<String>['--ez', 'impeller-force-gl', 'true'],
670668
if (debuggingOptions.debuggingEnabled) ...<String>[
671669
if (debuggingOptions.buildInfo.isDebug) ...<String>[
672670
...<String>['--ez', 'enable-checked-mode', 'true'],

packages/flutter_tools/lib/src/commands/run.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
195195
usesFatalWarningsOption(verboseHelp: verboseHelp);
196196
addEnableImpellerFlag(verboseHelp: verboseHelp);
197197
addEnableVulkanValidationFlag(verboseHelp: verboseHelp);
198-
addImpellerForceGLFlag(verboseHelp: verboseHelp);
199198
addEnableEmbedderApiFlag(verboseHelp: verboseHelp);
200199
}
201200

@@ -210,7 +209,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
210209
bool get trackWidgetCreation => boolArg('track-widget-creation');
211210
ImpellerStatus get enableImpeller => ImpellerStatus.fromBool(argResults!['enable-impeller'] as bool?);
212211
bool get enableVulkanValidation => boolArg('enable-vulkan-validation');
213-
bool get impellerForceGL => boolArg('impeller-force-gl');
214212
bool get uninstallFirst => boolArg('uninstall-first');
215213
bool get enableEmbedderApi => boolArg('enable-embedder-api');
216214

@@ -261,7 +259,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
261259
webHeaders: webHeaders,
262260
enableImpeller: enableImpeller,
263261
enableVulkanValidation: enableVulkanValidation,
264-
impellerForceGL: impellerForceGL,
265262
uninstallFirst: uninstallFirst,
266263
enableDartProfiling: enableDartProfiling,
267264
enableEmbedderApi: enableEmbedderApi,
@@ -316,7 +313,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
316313
nativeNullAssertions: boolArg('native-null-assertions'),
317314
enableImpeller: enableImpeller,
318315
enableVulkanValidation: enableVulkanValidation,
319-
impellerForceGL: impellerForceGL,
320316
uninstallFirst: uninstallFirst,
321317
serveObservatory: boolArg('serve-observatory'),
322318
enableDartProfiling: enableDartProfiling,

packages/flutter_tools/lib/src/device.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,6 @@ class DebuggingOptions {
955955
this.nativeNullAssertions = false,
956956
this.enableImpeller = ImpellerStatus.platformDefault,
957957
this.enableVulkanValidation = false,
958-
this.impellerForceGL = false,
959958
this.uninstallFirst = false,
960959
this.serveObservatory = false,
961960
this.enableDartProfiling = true,
@@ -982,7 +981,6 @@ class DebuggingOptions {
982981
this.traceAllowlist,
983982
this.enableImpeller = ImpellerStatus.platformDefault,
984983
this.enableVulkanValidation = false,
985-
this.impellerForceGL = false,
986984
this.uninstallFirst = false,
987985
this.enableDartProfiling = true,
988986
this.enableEmbedderApi = false,
@@ -1063,7 +1061,6 @@ class DebuggingOptions {
10631061
required this.nativeNullAssertions,
10641062
required this.enableImpeller,
10651063
required this.enableVulkanValidation,
1066-
required this.impellerForceGL,
10671064
required this.uninstallFirst,
10681065
required this.serveObservatory,
10691066
required this.enableDartProfiling,
@@ -1108,7 +1105,6 @@ class DebuggingOptions {
11081105
final bool webUseSseForInjectedClient;
11091106
final ImpellerStatus enableImpeller;
11101107
final bool enableVulkanValidation;
1111-
final bool impellerForceGL;
11121108
final bool serveObservatory;
11131109
final bool enableDartProfiling;
11141110
final bool enableEmbedderApi;
@@ -1255,7 +1251,6 @@ class DebuggingOptions {
12551251
'nativeNullAssertions': nativeNullAssertions,
12561252
'enableImpeller': enableImpeller.asBool,
12571253
'enableVulkanValidation': enableVulkanValidation,
1258-
'impellerForceGL': impellerForceGL,
12591254
'serveObservatory': serveObservatory,
12601255
'enableDartProfiling': enableDartProfiling,
12611256
'enableEmbedderApi': enableEmbedderApi,
@@ -1310,7 +1305,6 @@ class DebuggingOptions {
13101305
nativeNullAssertions: json['nativeNullAssertions']! as bool,
13111306
enableImpeller: ImpellerStatus.fromBool(json['enableImpeller'] as bool?),
13121307
enableVulkanValidation: (json['enableVulkanValidation'] as bool?) ?? false,
1313-
impellerForceGL: (json['impellerForceGL'] as bool?) ?? false,
13141308
uninstallFirst: (json['uninstallFirst'] as bool?) ?? false,
13151309
serveObservatory: (json['serveObservatory'] as bool?) ?? false,
13161310
enableDartProfiling: (json['enableDartProfiling'] as bool?) ?? true,

packages/flutter_tools/lib/src/runner/flutter_command.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,16 +1141,6 @@ abstract class FlutterCommand extends Command<void> {
11411141
);
11421142
}
11431143

1144-
void addImpellerForceGLFlag({required bool verboseHelp}) {
1145-
argParser.addFlag('impeller-force-gl',
1146-
hide: !verboseHelp,
1147-
help: 'On platforms that support OpenGL Rendering using Impeller, force '
1148-
'rendering using OpenGL over other APIs. If Impeller is not '
1149-
'enabled or the platform does not support OpenGL ES, this flag '
1150-
'does nothing.',
1151-
);
1152-
}
1153-
11541144
void addEnableEmbedderApiFlag({required bool verboseHelp}) {
11551145
argParser.addFlag('enable-embedder-api',
11561146
hide: !verboseHelp,

packages/flutter_tools/test/commands.shard/hermetic/run_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,6 @@ void main() {
12271227
'--native-null-assertions',
12281228
'--enable-impeller',
12291229
'--enable-vulkan-validation',
1230-
'--impeller-force-gl',
12311230
'--trace-systrace',
12321231
'--enable-software-rendering',
12331232
'--skia-deterministic-rendering',
@@ -1249,7 +1248,6 @@ void main() {
12491248
expect(options.traceSystrace, true);
12501249
expect(options.enableImpeller, ImpellerStatus.enabled);
12511250
expect(options.enableVulkanValidation, true);
1252-
expect(options.impellerForceGL, true);
12531251
expect(options.enableSoftwareRendering, true);
12541252
expect(options.skiaDeterministicRendering, true);
12551253
expect(options.usingCISystem, true);

0 commit comments

Comments
 (0)