Skip to content

Commit

Permalink
[Impeller] Add flags to enable the Vulkan and OpenGL ES backends. (fl…
Browse files Browse the repository at this point in the history
…utter#40422)

[Impeller] Add flags to enable the Vulkan and OpenGL ES backends.
  • Loading branch information
chinmaygarde authored Mar 18, 2023
1 parent e905228 commit fb483d7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,12 @@ def to_gn_args(args):
if args.enable_impeller_3d:
gn_args['impeller_enable_3d'] = True

if args.enable_impeller_vulkan:
gn_args['impeller_enable_vulkan'] = True

if args.enable_impeller_opengles:
gn_args['impeller_enable_opengles'] = True

if args.prebuilt_impellerc is not None:
gn_args['impeller_use_prebuilt_impellerc'] = args.prebuilt_impellerc

Expand Down Expand Up @@ -978,6 +984,20 @@ def parse_args(args):
help='Whether impeller unit tests run in playground mode.'
)

parser.add_argument(
'--enable-impeller-vulkan',
default=False,
action='store_true',
help='Enable the Impeller Vulkan backend.'
)

parser.add_argument(
'--enable-impeller-opengles',
default=False,
action='store_true',
help='Enable the Impeller OpenGL ES backend.'
)

parser.add_argument(
'--prebuilt-impellerc',
default=None,
Expand Down

0 comments on commit fb483d7

Please sign in to comment.