[Impeller] Add --enable-impeller-vulkan-playgrounds to ./flutter/tools/gn (flutter/engine#50477)

One has to manually `gn args` to add this flag (usually on macOS) now.
This commit is contained in:
Chinmay Garde 2024-02-09 14:44:34 -08:00 committed by GitHub
parent 603ed08902
commit ecebcc1704

View File

@ -669,6 +669,9 @@ def to_gn_args(args):
if args.enable_impeller_vulkan:
gn_args['impeller_enable_vulkan'] = True
if args.enable_impeller_vulkan_playgrounds:
gn_args['impeller_enable_vulkan_playgrounds'] = True
if args.enable_impeller_opengles:
gn_args['impeller_enable_opengles'] = True
@ -1124,6 +1127,14 @@ def parse_args(args):
help='Enable the Impeller Vulkan backend.'
)
parser.add_argument(
'--enable-impeller-vulkan-playgrounds',
default=False,
action='store_true',
help='Enable the Impeller Vulkan Playgrounds. ' +
'The Impeller Vulkan backend needs to be enabled.'
)
parser.add_argument(
'--enable-impeller-opengles',
default=False,