summaryrefslogtreecommitdiffstats
path: root/common/canvas_utils.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-04-21 17:45:07 +0200
committerAlexander Larsson <alexl@redhat.com>2010-04-23 16:36:35 +0200
commit619c37af17406f77c7cb76f3b72bbfc268383d91 (patch)
treeeb570d9ced1d4e6e3be80ff6d2ef3d4ee45fbb11 /common/canvas_utils.h
parent6dc52f1389b6b1c6ce2589ff183982d65c8c1581 (diff)
downloadspice-619c37af17406f77c7cb76f3b72bbfc268383d91.tar.gz
spice-619c37af17406f77c7cb76f3b72bbfc268383d91.tar.xz
spice-619c37af17406f77c7cb76f3b72bbfc268383d91.zip
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 1c78ffac..b81a6f91 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);