[perf/perf] Fix run when ttfparser is not available
This commit is contained in:
parent
f48647e589
commit
df3ecea773
|
@ -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 ();
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue