From ecebcc1704a3a8b3b8aacdfeb2e759f6eb260ba8 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 9 Feb 2024 14:44:34 -0800 Subject: [PATCH] [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. --- engine/src/flutter/tools/gn | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 0f55009961a..18be4bd6d24 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -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,