[boilerplate] Use xlib as fallback reference for xcb

And exercise RGB code-paths.
This commit is contained in:
Chris Wilson 2009-09-01 14:59:36 +01:00
parent e7a118d3f8
commit c4c7db9675

View file

@ -117,7 +117,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", "xcb", NULL, NULL,
"xcb", "xlib", NULL, NULL,
CAIRO_SURFACE_TYPE_XCB, CAIRO_CONTENT_COLOR_ALPHA, 1,
"cairo_xcb_surface_create_with_xrender_format",
_cairo_boilerplate_xcb_create_surface,
@ -127,5 +127,16 @@ static const cairo_boilerplate_target_t targets[] = {
_cairo_boilerplate_xcb_cleanup,
_cairo_boilerplate_xcb_synchronize
},
{
"xcb", "xlib", NULL, NULL,
CAIRO_SURFACE_TYPE_XCB, CAIRO_CONTENT_COLOR, 1,
"cairo_xcb_surface_create_with_xrender_format",
_cairo_boilerplate_xcb_create_surface,
NULL, NULL,
_cairo_boilerplate_get_image_surface,
cairo_surface_write_to_png,
_cairo_boilerplate_xcb_cleanup,
_cairo_boilerplate_xcb_synchronize
},
};
CAIRO_BOILERPLATE (xcb, targets)