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

This commit is contained in:
Behdad Esfahbod committed 2022-04-21 11:16:12 -06:00
1 parent f48647e589
commit df3ecea773
2 files changed
+6

No files matched your search

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