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