diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-17 21:33:54 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-17 23:43:26 +0100 |
commit | c068691ff57c2f6cd750a54db17393c0e132cb00 (patch) | |
tree | 572c6165864275dc7b1a0d002a80dd88899ef8e9 /src/cairo-xlib-private.h | |
parent | bc38108947a684fb6e7af99a48ebc8f79d05856a (diff) | |
download | cairo-c068691ff57c2f6cd750a54db17393c0e132cb00.tar.gz |
xlib/shm: Use an impromptu upload ShmSegment
Reduce the number of copies required for uploading large image data.
Ultimately we want the client to allocate the similar-image itself to
acheive zero copy, this is just an intermediate step for legacy clients.
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 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h index b704c6b28..26bdede63 100644 --- a/src/cairo-xlib-private.h +++ b/src/cairo-xlib-private.h @@ -411,9 +411,14 @@ cairo_private cairo_int_status_t _cairo_xlib_surface_put_shm (cairo_xlib_surface_t *surface); cairo_private cairo_surface_t * -_cairo_xlib_surface_create_shm_image (cairo_xlib_surface_t *surface, - pixman_format_code_t format, - int width, int height); +_cairo_xlib_surface_create_shm (cairo_xlib_surface_t *other, + pixman_format_code_t format, + int width, int height); + +cairo_private cairo_surface_t * +_cairo_xlib_surface_create_shm__image (cairo_xlib_surface_t *surface, + pixman_format_code_t format, + int width, int height); cairo_private void _cairo_xlib_shm_surface_get_ximage (cairo_surface_t *surface, |