diff options
Diffstat (limited to 'perf/micro/rectangles.c')
-rw-r--r-- | perf/micro/rectangles.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/perf/micro/rectangles.c b/perf/micro/rectangles.c index 891572b6..9228a4ef 100644 --- a/perf/micro/rectangles.c +++ b/perf/micro/rectangles.c @@ -95,14 +95,17 @@ do_rectangle (cairo_t *cr, int width, int height, int loops) return cairo_perf_timer_elapsed (); } +cairo_bool_t +rectangles_enabled (cairo_perf_t *perf) +{ + return cairo_perf_can_run (perf, "rectangles", NULL); +} + void rectangles (cairo_perf_t *perf, cairo_t *cr, int width, int height) { int i; - if (! cairo_perf_can_run (perf, "rectangles", NULL)) - return; - srand (8478232); for (i = 0; i < RECTANGLE_COUNT; i++) { |