summaryrefslogtreecommitdiff
path: root/src/cairo-xcb.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-xcb.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-xcb.h')
-rw-r--r--src/cairo-xcb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cairo-xcb.h b/src/cairo-xcb.h
index 3f64dcbdc..9a3798d18 100644
--- a/src/cairo-xcb.h
+++ b/src/cairo-xcb.h
@@ -87,6 +87,17 @@ cairo_xcb_device_debug_cap_xrender_version (cairo_device_t *device,
int major_version,
int minor_version);
+/*
+ * @precision: -1 implies automatically choose based on antialiasing mode,
+ * any other value overrides and sets the corresponding PolyMode.
+ */
+cairo_public void
+cairo_xcb_device_debug_set_precision (cairo_device_t *device,
+ int precision);
+
+cairo_public int
+cairo_xcb_device_debug_get_precision (cairo_device_t *device);
+
CAIRO_END_DECLS
#else /* CAIRO_HAS_XCB_SURFACE */