diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-22 18:59:01 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-29 08:08:26 +0100 |
commit | bdd3c5ba6987280b455229dd12b20c22159ce61c (patch) | |
tree | c85172f26c5c1ced54731610930c7eeb630de5a6 /perf/dragon.c | |
parent | 77c11096169bc8af6aa08241a800a51a2292a27a (diff) |
[perf] Match directory names
In order to handle 'cairo-perf-trace benchmark', we need to perform the
can_run? test on the directory name as opposed to the individual trace
names. Make it so.
Diffstat (limited to 'perf/dragon.c')
-rw-r--r-- | perf/dragon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perf/dragon.c b/perf/dragon.c index a145f781..eb8251c8 100644 --- a/perf/dragon.c +++ b/perf/dragon.c @@ -72,6 +72,7 @@ path (cairo_t *cr, int step, int dir, int iterations) int i; switch (dir) { + default: case 0: dx = step; dy = 0; break; case 1: dx = -step; dy = 0; break; case 2: dx = 0; dy = step; break; @@ -237,7 +238,7 @@ do_dragon_solid_circle_clip (cairo_t *cr, int width, int height, int loops) void dragon (cairo_perf_t *perf, cairo_t *cr, int width, int height) { - if (! cairo_perf_can_run (perf, "dragon")) + if (! cairo_perf_can_run (perf, "dragon", NULL)) return; cairo_perf_run (perf, "dragon-solid", do_dragon_solid); |