diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-28 17:55:41 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-28 17:59:13 +0000 |
commit | 2c908f8a42456ab0ec6f12c36a2cf68523287ba7 (patch) | |
tree | d767fa339f3d7fba91b4bec8592e18b792446911 /test/record.c | |
parent | ef7e57f0fd1aaf96be87cc73b4d51d6ce55f231b (diff) | |
download | cairo-2c908f8a42456ab0ec6f12c36a2cf68523287ba7.tar.gz |
test: Regenerate reference images for vanilla record tests
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/record.c')
-rw-r--r-- | test/record.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/record.c b/test/record.c index 4b7fc81eb..b1baadace 100644 --- a/test/record.c +++ b/test/record.c @@ -36,6 +36,8 @@ #define TT_PAD 5 #define TT_FONT_SIZE 32.0 +#define GENERATE_REF 0 + static uint32_t data[16] = { 0xffffffff, 0xffffffff, 0xffff0000, 0xffff0000, 0xffffffff, 0xffffffff, 0xffff0000, 0xffff0000, @@ -356,6 +358,9 @@ record_replay (cairo_t *cr, cairo_t *(*func)(cairo_t *), int width, int height) cairo_surface_t *surface; int x, y; +#if GENERATE_REF + func(cr); +#else surface = record_get (func (record_create (cr))); cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); @@ -371,6 +376,7 @@ record_replay (cairo_t *cr, cairo_t *(*func)(cairo_t *), int width, int height) cairo_reset_clip (cr); } } +#endif return CAIRO_TEST_SUCCESS; } |