[subet] Don't use experimental api flag in benchmark if not compiled with experimental api.

This commit is contained in:
Garret Rieger 2024-04-02 17:42:14 +00:00 committed by Behdad Esfahbod
parent 41612df9d3
commit 2fcace77b2

View file

@ -195,7 +195,9 @@ static void BM_subset (benchmark::State &state,
AddCodepoints(all_codepoints, subset_size, input);
hb_set_destroy (all_codepoints);
#ifdef HB_EXPERIMENTAL_API
hb_subset_input_set_flags(input, hb_subset_input_get_flags(input) | HB_SUBSET_FLAGS_OPTIMIZE_IUP_DELTAS);
#endif
for (unsigned i = 0; i < test_input.num_instance_opts; i++)
hb_subset_input_pin_axis_location (input, face,