mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 21:48:24 +02:00
[boilerplate] Use xlib as fallback reference for xcb
And exercise RGB code-paths.
This commit is contained in:
parent
e7a118d3f8
commit
c4c7db9675
1 changed files with 12 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue