[Impeller] Plumb through the impeller-force-gl flag. (#123828)

[Impeller] Plumb through the impeller-force-gl flag.
This commit is contained in:
Chinmay Garde
2023-03-31 08:13:10 -07:00
committed by GitHub
parent d940f60b46
commit f6c2b10e1a
5 changed files with 24 additions and 0 deletions

View File

@@ -1069,6 +1069,16 @@ 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}) {
argParser.addFlag('enable-embedder-api',
hide: !verboseHelp,