summaryrefslogtreecommitdiff
path: root/perf/cairo-perf.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-10-04 15:39:05 -0700
committerCarl Worth <cworth@cworth.org>2006-10-04 17:14:12 -0700
commitd52256df7c0147c29246dfc930644b6bdbff3c3f (patch)
tree1d7736ab88cd0eefd8c6224bef7b9516e8c4bb58 /perf/cairo-perf.h
parentad02773e9babe935250b810f8f9f490eb3d02a64 (diff)
perf: Move iteration over sources and operators from paint to new cairo-perf-cover
This will finally allow us to very easily add lots of other tests that will similarly involve iterating over the various sources and operators of interest.
Diffstat (limited to 'perf/cairo-perf.h')
-rw-r--r--perf/cairo-perf.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/perf/cairo-perf.h b/perf/cairo-perf.h
index 5c5ec21b..10007200 100644
--- a/perf/cairo-perf.h
+++ b/perf/cairo-perf.h
@@ -59,7 +59,13 @@ void
cairo_perf_yield (void);
/* running a test case */
-typedef struct _cairo_perf cairo_perf_t;
+typedef struct _cairo_perf {
+ unsigned int iterations;
+ cairo_boilerplate_target_t *target;
+ unsigned int test_number;
+ unsigned int size;
+ cairo_t *cr;
+} cairo_perf_t;
typedef cairo_perf_ticks_t
(*cairo_perf_func_t) (cairo_t *cr, int width, int height);
@@ -69,6 +75,11 @@ cairo_perf_run (cairo_perf_t *perf,
const char *name,
cairo_perf_func_t perf_func);
+void
+cairo_perf_cover_sources_and_operators (cairo_perf_t *perf,
+ const char *name,
+ cairo_perf_func_t perf_func);
+
#define CAIRO_PERF_DECL(func) void (func) (cairo_perf_t *perf, cairo_t *cr, int width, int height);
/* paint.c */