diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-02-06 20:11:17 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-02-13 13:26:53 +0000 |
commit | 655f6987334b991763a5ab7746dbfd73c6b05f3e (patch) | |
tree | 3b9dba6b70492046eb0d812870e4202033cf4e04 /perf/paint.c | |
parent | 798581a1b5a8a56ce9d16c5b21eab82851061732 (diff) |
[perf] Split can_run? into a separate precondition.
Allow tests to skip unnecessary setup when pruning the list of perf cases.
Diffstat (limited to 'perf/paint.c')
-rw-r--r-- | perf/paint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perf/paint.c b/perf/paint.c index 6f75016c..a60d132b 100644 --- a/perf/paint.c +++ b/perf/paint.c @@ -40,5 +40,8 @@ do_paint (cairo_t *cr, int width, int height) void paint (cairo_perf_t *perf, cairo_t *cr, int width, int height) { + if (! cairo_perf_can_run (perf, "paint")) + return; + cairo_perf_cover_sources_and_operators (perf, "paint", do_paint); } |