summaryrefslogtreecommitdiff
path: root/perf/cairo-perf.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-02-06 20:11:17 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2009-02-13 13:26:53 +0000
commit655f6987334b991763a5ab7746dbfd73c6b05f3e (patch)
tree3b9dba6b70492046eb0d812870e4202033cf4e04 /perf/cairo-perf.h
parent798581a1b5a8a56ce9d16c5b21eab82851061732 (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/cairo-perf.h')
-rw-r--r--perf/cairo-perf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/perf/cairo-perf.h b/perf/cairo-perf.h
index 8c44c9ae..7e792ad8 100644
--- a/perf/cairo-perf.h
+++ b/perf/cairo-perf.h
@@ -89,6 +89,10 @@ typedef struct _cairo_perf {
typedef cairo_perf_ticks_t
(*cairo_perf_func_t) (cairo_t *cr, int width, int height);
+cairo_bool_t
+cairo_perf_can_run (cairo_perf_t *perf,
+ const char *name);
+
void
cairo_perf_run (cairo_perf_t *perf,
const char *name,