summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2013-04-04 12:03:19 -0700
committerMartin Robinson <mrobinson@igalia.com>2013-04-04 12:04:50 -0700
commitb00b9e82ab728eaf3b87dd1113387d8e8df0d7e3 (patch)
treecf38923cca5acad10febe0fe56132f79cdc7b6e6 /boilerplate
parente66e9ac12e3e11af76f14e8de3cfee72d4299864 (diff)
boilerplate: Add a mode for running threaded perf tests
This is useful because the GL backend runs much faster on some drivers when thread awareness is disabled.
Diffstat (limited to 'boilerplate')
-rw-r--r--boilerplate/cairo-boilerplate.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/boilerplate/cairo-boilerplate.h b/boilerplate/cairo-boilerplate.h
index 461b98b69..4f6b8fde9 100644
--- a/boilerplate/cairo-boilerplate.h
+++ b/boilerplate/cairo-boilerplate.h
@@ -113,7 +113,12 @@ cairo_boilerplate_format_from_content (cairo_content_t content);
typedef enum {
CAIRO_BOILERPLATE_MODE_TEST,
- CAIRO_BOILERPLATE_MODE_PERF
+ CAIRO_BOILERPLATE_MODE_PERF,
+
+ /* This will allow running performance test with threads. The
+ * GL backend is very slow on some drivers when run with thread
+ * awareness turned on. */
+ CAIRO_BOILERPLATE_MODE_PERF_THREADS,
} cairo_boilerplate_mode_t;
typedef cairo_surface_t *