From b00b9e82ab728eaf3b87dd1113387d8e8df0d7e3 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Thu, 4 Apr 2013 12:03:19 -0700 Subject: 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. --- boilerplate/cairo-boilerplate.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/boilerplate/cairo-boilerplate.h b/boilerplate/cairo-boilerplate.h index 461b98b6..4f6b8fde 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 * -- cgit v1.2.3