summaryrefslogtreecommitdiff
path: root/common/canvas_utils.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-04-21 17:45:07 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:41 +0100
commitfbcc890794405181b3cd1ba1c201b67443f40824 (patch)
treef3672a999004b48adf3791d78efffb2f4e4e6ae8 /common/canvas_utils.h
parenteb14443bf253ed4bd6866e001f9336678f56d219 (diff)
common: Add lookaside storage for pixman image format
Ideally we should just read this from the pixman image, but there is no API to do so in stable pixman, so we store it.
Diffstat (limited to 'common/canvas_utils.h')
-rw-r--r--common/canvas_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/canvas_utils.h b/common/canvas_utils.h
index 1c78ffa..b81a6f9 100644
--- a/common/canvas_utils.h
+++ b/common/canvas_utils.h
@@ -30,8 +30,14 @@ typedef struct PixmanData {
HANDLE mutex;
#endif
uint8_t *data;
+ pixman_format_code_t format;
} PixmanData;
+void spice_pixman_image_set_format(pixman_image_t *image,
+ pixman_format_code_t format);
+pixman_format_code_t spice_pixman_image_get_format(pixman_image_t *image);
+
+
#ifdef WIN32
pixman_image_t *surface_create(HDC dc, pixman_format_code_t format,
int width, int height, int top_down);