summaryrefslogtreecommitdiffstats
path: root/common/canvas_base.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2010-06-01 10:30:51 +0300
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:43 +0100
commitf3d77c3e84c46934906507cbe67df4837e0a3e58 (patch)
tree7c353d4208540d28e81d59c9047b9f3e6f6732a6 /common/canvas_base.h
parent19bca5b373d9b8fa983f723a8daea54178b0a3ed (diff)
downloadspice-common-f3d77c3e84c46934906507cbe67df4837e0a3e58.tar.gz
spice-common-f3d77c3e84c46934906507cbe67df4837e0a3e58.tar.xz
spice-common-f3d77c3e84c46934906507cbe67df4837e0a3e58.zip
support for lossy images in the pixmap cache and fill bits
1) add an option to determine if a bitmap can be sent lossy to the client 2) when required, replacing lossy cache items with their correspending lossless bitmaps
Diffstat (limited to 'common/canvas_base.h')
-rw-r--r--common/canvas_base.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/canvas_base.h b/common/canvas_base.h
index 4eaafbb..1bbe465 100644
--- a/common/canvas_base.h
+++ b/common/canvas_base.h
@@ -41,6 +41,16 @@ typedef struct {
pixman_image_t *surface);
pixman_image_t *(*get)(SpiceImageCache *cache,
uint64_t id);
+#ifdef SW_CANVAS_CACHE
+ void (*put_lossy)(SpiceImageCache *cache,
+ uint64_t id,
+ pixman_image_t *surface);
+ void (*replace_lossy)(SpiceImageCache *cache,
+ uint64_t id,
+ pixman_image_t *surface);
+ pixman_image_t *(*get_lossless)(SpiceImageCache *cache,
+ uint64_t id);
+#endif
} SpiceImageCacheOps;
struct _SpiceImageCache {