[perf/perf] Fix run when ttfparser is not available

This commit is contained in:
Behdad Esfahbod 2022-04-20 16:06:06 -06:00
parent f48647e589
commit df3ecea773
2 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,9 @@ static void draw (benchmark::State &state, const char *font_path, bool is_var, b
hb_blob_destroy (blob); hb_blob_destroy (blob);
free (tp_font); free (tp_font);
#else
state.SkipWithError("ttfparser not available.");
return;
#endif #endif
} }
else abort (); else abort ();

View File

@ -56,6 +56,9 @@ static void extents (benchmark::State &state, const char *font_path, bool is_var
hb_blob_destroy (blob); hb_blob_destroy (blob);
free (tp_font); free (tp_font);
#else
state.SkipWithError("ttfparser not available.");
return;
#endif #endif
} }