mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
[perf/perf] Fix run when ttfparser is not available
This commit is contained in:
1 parent
f48647e589
commit
df3ecea773
2 files changed
+6
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user