diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-16 11:09:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-16 11:09:22 +0100 |
commit | fcea0f8e08e2fbd448a990b60be0cf16535b45a5 (patch) | |
tree | 0363ec00615fdfed7519949c9b04df7f4921b13b /boilerplate | |
parent | 62e1ded35c4d8d3139152661afea61b628152d47 (diff) | |
download | cairo-fcea0f8e08e2fbd448a990b60be0cf16535b45a5.tar.gz |
test: Use the test-traps as the reference images for xlib/xcb
The test-traps provides a reference implementation of the
traps-compositor as used by xlib, so we can use it to generate the
reference images as well. (Of course checking that test-traps is itself
correct and only differs in the renderer! ;-)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'boilerplate')
-rw-r--r-- | boilerplate/cairo-boilerplate-test-surfaces.c | 2 | ||||
-rw-r--r-- | boilerplate/cairo-boilerplate-xcb.c | 8 | ||||
-rw-r--r-- | boilerplate/cairo-boilerplate-xlib.c | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/boilerplate/cairo-boilerplate-test-surfaces.c b/boilerplate/cairo-boilerplate-test-surfaces.c index 40ed73d3b..8370de249 100644 --- a/boilerplate/cairo-boilerplate-test-surfaces.c +++ b/boilerplate/cairo-boilerplate-test-surfaces.c @@ -323,7 +323,7 @@ static const cairo_boilerplate_target_t targets[] = { "test-mask", "mask", NULL, NULL, CAIRO_SURFACE_TYPE_IMAGE, CAIRO_CONTENT_COLOR_ALPHA, 0, - "_cairo_test_traps_compositor_surface_create", + "_cairo_test_mask_compositor_surface_create", _cairo_boilerplate_test_mask_compositor_create_surface, cairo_surface_create_similar, NULL, NULL, diff --git a/boilerplate/cairo-boilerplate-xcb.c b/boilerplate/cairo-boilerplate-xcb.c index 34a0b029c..abb982b01 100644 --- a/boilerplate/cairo-boilerplate-xcb.c +++ b/boilerplate/cairo-boilerplate-xcb.c @@ -771,7 +771,7 @@ static const cairo_boilerplate_target_t targets[] = { /* Acceleration architectures may make the results differ by a * bit, so we set the error tolerance to 1. */ { - "xcb", "xlib", NULL, NULL, + "xcb", "traps", NULL, NULL, CAIRO_SURFACE_TYPE_XCB, CAIRO_CONTENT_COLOR_ALPHA, 1, "cairo_xcb_surface_create_with_xrender_format", _cairo_boilerplate_xcb_create_surface, @@ -786,7 +786,7 @@ static const cairo_boilerplate_target_t targets[] = { TRUE, FALSE, FALSE }, { - "xcb", "xlib", NULL, NULL, + "xcb", "traps", NULL, NULL, CAIRO_SURFACE_TYPE_XCB, CAIRO_CONTENT_COLOR, 1, "cairo_xcb_surface_create_with_xrender_format", _cairo_boilerplate_xcb_create_surface, @@ -801,7 +801,7 @@ static const cairo_boilerplate_target_t targets[] = { FALSE, FALSE, FALSE }, { - "xcb-window", "xlib", NULL, NULL, + "xcb-window", "traps", NULL, NULL, CAIRO_SURFACE_TYPE_XCB, CAIRO_CONTENT_COLOR, 1, "cairo_xcb_surface_create_with_xrender_format", _cairo_boilerplate_xcb_create_window, @@ -816,7 +816,7 @@ static const cairo_boilerplate_target_t targets[] = { FALSE, FALSE, FALSE }, { - "xcb-window&", "xlib", NULL, NULL, + "xcb-window&", "traps", NULL, NULL, CAIRO_SURFACE_TYPE_XCB, CAIRO_CONTENT_COLOR, 1, "cairo_xcb_surface_create_with_xrender_format", _cairo_boilerplate_xcb_create_window_db, diff --git a/boilerplate/cairo-boilerplate-xlib.c b/boilerplate/cairo-boilerplate-xlib.c index cad288477..eaaae99e9 100644 --- a/boilerplate/cairo-boilerplate-xlib.c +++ b/boilerplate/cairo-boilerplate-xlib.c @@ -568,7 +568,7 @@ static const cairo_boilerplate_target_t targets[] = { /* Acceleration architectures may make the results differ by a * bit, so we set the error tolerance to 1. */ { - "xlib", "xlib", NULL, "xlib-fallback", + "xlib", "traps", NULL, "xlib-fallback", CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR_ALPHA, 1, "cairo_xlib_surface_create_with_xrender_format", _cairo_boilerplate_xlib_create_surface, @@ -582,7 +582,7 @@ static const cairo_boilerplate_target_t targets[] = { TRUE, FALSE, FALSE }, { - "xlib", "xlib", NULL, "xlib-fallback", + "xlib", "traps", NULL, "xlib-fallback", CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR, 1, "cairo_xlib_surface_create_with_xrender_format", _cairo_boilerplate_xlib_create_surface, @@ -596,7 +596,7 @@ static const cairo_boilerplate_target_t targets[] = { FALSE, FALSE, FALSE }, { - "xlib-window", "xlib", NULL, NULL, + "xlib-window", "traps", NULL, NULL, CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR, 1, "cairo_xlib_surface_create", _cairo_boilerplate_xlib_window_create_surface, |