mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 10:48:28 +02:00
Make xlib and xcb backends tolerant of single-bit errors in the test suite output.
This commit is contained in:
parent
05a259d493
commit
61bf9b009b
1 changed files with 8 additions and 4 deletions
|
|
@ -1437,14 +1437,18 @@ cairo_boilerplate_target_t targets[] =
|
|||
create_win32_surface, cairo_surface_write_to_png, cleanup_win32 },
|
||||
#endif
|
||||
#if CAIRO_HAS_XCB_SURFACE
|
||||
{ "xcb", CAIRO_SURFACE_TYPE_XCB, CAIRO_CONTENT_COLOR_ALPHA, 0,
|
||||
/* Acceleration architectures may make the results differ by a
|
||||
* bit, so we set the error tolerance to 1. */
|
||||
{ "xcb", CAIRO_SURFACE_TYPE_XCB, CAIRO_CONTENT_COLOR_ALPHA, 1,
|
||||
create_xcb_surface, cairo_surface_write_to_png, cleanup_xcb},
|
||||
#endif
|
||||
#if CAIRO_HAS_XLIB_SURFACE
|
||||
{ "xlib", CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR_ALPHA, 0,
|
||||
/* Acceleration architectures may make the results differ by a
|
||||
* bit, so we set the error tolerance to 1. */
|
||||
{ "xlib", CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR_ALPHA, 1,
|
||||
create_xlib_surface, cairo_surface_write_to_png, cleanup_xlib,
|
||||
boilerplate_xlib_synchronize},
|
||||
{ "xlib", CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR, 0,
|
||||
{ "xlib", CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR, 1,
|
||||
create_xlib_surface, cairo_surface_write_to_png, cleanup_xlib,
|
||||
boilerplate_xlib_synchronize},
|
||||
#endif
|
||||
|
|
@ -1485,7 +1489,7 @@ cairo_boilerplate_target_t targets[] =
|
|||
* through librsvg and cairo, but for some mysterious reason, some
|
||||
* systems get an error of 1 for some pixels on some of the text
|
||||
* tests. XXX: I'd still like to chase these down at some point.
|
||||
* For now just set teh svg error tolerance to 1. */
|
||||
* For now just set the svg error tolerance to 1. */
|
||||
{ "svg", CAIRO_SURFACE_TYPE_SVG, CAIRO_CONTENT_COLOR_ALPHA, 1,
|
||||
create_svg_surface, svg_surface_write_to_png, cleanup_svg },
|
||||
{ "svg", CAIRO_INTERNAL_SURFACE_TYPE_META, CAIRO_CONTENT_COLOR, 1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue