[cairo-commit] boilerplate/cairo-boilerplate.c

Carl Worth cworth at kemper.freedesktop.org
Thu Oct 26 15:52:36 PDT 2006


 boilerplate/cairo-boilerplate.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

New commits:
diff-tree 61bf9b009b47312c20d54198790542cd20fc5576 (from 05a259d49368fb128b99d99f3776f8783df9d4ed)
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Oct 26 15:52:21 2006 -0700

    Make xlib and xcb backends tolerant of single-bit errors in the test suite output.

diff --git a/boilerplate/cairo-boilerplate.c b/boilerplate/cairo-boilerplate.c
index 27f9a2d..404e4db 100644
--- a/boilerplate/cairo-boilerplate.c
+++ b/boilerplate/cairo-boilerplate.c
@@ -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,


More information about the cairo-commit mailing list