diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-25 20:02:47 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-25 20:15:18 +0100 |
commit | 8996287d94b159c922282e0b6434b0637f8f32aa (patch) | |
tree | db6a9c0d9ea87f7b33f2caddbe854eb9ec8a5193 /src/cairo-xlib-private.h | |
parent | f46ba56d5b8c54be5f0379aca204c0ce05d0f58a (diff) | |
download | cairo-8996287d94b159c922282e0b6434b0637f8f32aa.tar.gz |
xlib: Create an exact match for the image surface if possible using Xrender
In order to defer the pixel conversion till as late in the pipeline as
possible, we want to try and preserve the pixman image format whilst
uploading the pixel data. To do this, we want to create an XRender
surface with a matching PictFormat to the source image. Then we need to
make sure we take the quick path through _draw_image_surface for none
and direct conversions.
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h index a44a93237..47d535b72 100644 --- a/src/cairo-xlib-private.h +++ b/src/cairo-xlib-private.h @@ -161,6 +161,10 @@ cairo_private XRenderPictFormat * _cairo_xlib_display_get_xrender_format (cairo_xlib_display_t *display, cairo_format_t format); +cairo_private XRenderPictFormat * +_cairo_xlib_display_get_xrender_format_for_pixman (cairo_xlib_display_t *display, + pixman_format_code_t format); + cairo_private cairo_status_t _cairo_xlib_screen_get (Display *dpy, Screen *screen, |