diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-05-27 15:59:37 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-01 16:50:25 +0100 |
commit | 63bdae27a83381fb8c3786c2d7a6c2592e388ee9 (patch) | |
tree | 1897d8eac8bf89bfdc1fb6c99a1ee59b044e5143 /src/cairo-xlib-private.h | |
parent | e21b373c94b1edb2828d4fee7ff45060fb22dbda (diff) |
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-private.h')
-rw-r--r-- | src/cairo-xlib-private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h index bd260bc0..a44a9323 100644 --- a/src/cairo-xlib-private.h +++ b/src/cairo-xlib-private.h @@ -80,6 +80,8 @@ struct _cairo_xlib_display { cairo_xlib_job_t *workqueue; cairo_freelist_t wq_freelist; + int force_precision; + cairo_xlib_hook_t *close_display_hooks; unsigned int buggy_gradients :1; unsigned int buggy_pad_reflect :1; @@ -151,6 +153,10 @@ _cairo_xlib_display_has_reflect (cairo_device_t *device); cairo_private cairo_bool_t _cairo_xlib_display_has_gradients (cairo_device_t *device); +cairo_private void +_cairo_xlib_display_set_precision(cairo_device_t *device, + int precision); + cairo_private XRenderPictFormat * _cairo_xlib_display_get_xrender_format (cairo_xlib_display_t *display, cairo_format_t format); |