summaryrefslogtreecommitdiff
path: root/perf/micro/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'perf/micro/text.c')
-rw-r--r--perf/micro/text.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/perf/micro/text.c b/perf/micro/text.c
index bd2ca7b4..cdb31993 100644
--- a/perf/micro/text.c
+++ b/perf/micro/text.c
@@ -56,11 +56,14 @@ do_text (cairo_t *cr, int width, int height, int loops)
return cairo_perf_timer_elapsed ();
}
+cairo_bool_t
+text_enabled (cairo_perf_t *perf)
+{
+ return cairo_perf_can_run (perf, "text", NULL);
+}
+
void
text (cairo_perf_t *perf, cairo_t *cr, int width, int height)
{
- if (! cairo_perf_can_run (perf, "text", NULL))
- return;
-
cairo_perf_cover_sources_and_operators (perf, "text", do_text, NULL);
}