summaryrefslogtreecommitdiff
path: root/src/cairo-xlib.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-05-27 15:59:37 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-01 16:50:25 +0100
commit63bdae27a83381fb8c3786c2d7a6c2592e388ee9 (patch)
tree1897d8eac8bf89bfdc1fb6c99a1ee59b044e5143 /src/cairo-xlib.h
parente21b373c94b1edb2828d4fee7ff45060fb22dbda (diff)
downloadcairo-63bdae27a83381fb8c3786c2d7a6c2592e388ee9.tar.gz
xlib,xcb: Force strict adherence to the Render specification when testing
Introduce cairo_xlib_device_debug_set_precision() to override the automatic selection of rendering precision and force the Xorg/DDX to strictly adhere to the precise rendering mode of the Render specification. This allows us to test drivers without worrying, too much, about minor discrepancies in antialiasing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-xlib.h')
-rw-r--r--src/cairo-xlib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cairo-xlib.h b/src/cairo-xlib.h
index 4ee592ce4..7f770b972 100644
--- a/src/cairo-xlib.h
+++ b/src/cairo-xlib.h
@@ -91,6 +91,19 @@ cairo_xlib_surface_get_width (cairo_surface_t *surface);
cairo_public int
cairo_xlib_surface_get_height (cairo_surface_t *surface);
+/* debug interface */
+
+/*
+ * @precision: -1 implies automatically choose based on antialiasing mode,
+ * any other value overrides and sets the corresponding PolyMode.
+ */
+cairo_public void
+cairo_xlib_device_debug_set_precision (cairo_device_t *device,
+ int precision);
+
+cairo_public int
+cairo_xlib_device_debug_get_precision (cairo_device_t *device);
+
CAIRO_END_DECLS
#else /* CAIRO_HAS_XLIB_SURFACE */