diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-28 16:22:49 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-30 17:52:13 +0000 |
commit | 2555f83b11ee23829cfdeaae703420ca3e572fa1 (patch) | |
tree | 4a4a00d6acfc709c6cc7057d0e88b66ae5df0bf9 /src/cairo-xlib-private.h | |
parent | 0d0c6a199c5b631299c72dce80d66ac0f4936a64 (diff) |
[xlib] Avoid repeated calls to XRenderQueryVersion
Use the value determined during display initialisation in order to avoid
redundant XRenderQueryFormats requests.
Diffstat (limited to 'src/cairo-xlib-private.h')
-rw-r--r-- | src/cairo-xlib-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h index 79cd6b56..4b0a94d6 100644 --- a/src/cairo-xlib-private.h +++ b/src/cairo-xlib-private.h @@ -64,6 +64,8 @@ struct _cairo_xlib_display { Display *display; cairo_xlib_screen_info_t *screens; + int render_major; + int render_minor; XRenderPictFormat *cached_xrender_formats[CAIRO_FORMAT_A1 + 1]; cairo_xlib_job_t *workqueue; |