mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[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:
parent
603ed08902
commit
ecebcc1704
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user