summaryrefslogtreecommitdiffstats
path: root/server/spice_image_cache.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-14 19:03:43 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-11-10 10:02:08 +0000
commitface40e19e08e33f6a43d57fb17f8945f7c16e31 (patch)
tree87bc32eefa4399b0c6251597eb933b2519893be6 /server/spice_image_cache.h
parent1b9d767ca7cdde33d12d3700afeb433f2625f528 (diff)
downloadspice-face40e19e08e33f6a43d57fb17f8945f7c16e31.tar.gz
spice-face40e19e08e33f6a43d57fb17f8945f7c16e31.tar.xz
spice-face40e19e08e33f6a43d57fb17f8945f7c16e31.zip
worker: move image cache to display
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/spice_image_cache.h')
-rw-r--r--server/spice_image_cache.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/server/spice_image_cache.h b/server/spice_image_cache.h
index 07ecefb7..6d6b32d1 100644
--- a/server/spice_image_cache.h
+++ b/server/spice_image_cache.h
@@ -22,9 +22,12 @@
#include "common/pixman_utils.h"
#include "common/canvas_base.h"
-
#include "common/ring.h"
+/* FIXME: move back to display_channel.h (once structs are private) */
+typedef struct Drawable Drawable;
+typedef struct DisplayChannelClient DisplayChannelClient;
+
typedef struct ImageCacheItem {
RingItem lru_link;
uint64_t id;
@@ -48,9 +51,15 @@ typedef struct ImageCache {
#endif
} ImageCache;
-int image_cache_hit(ImageCache *cache, uint64_t id);
-void image_cache_init(ImageCache *cache);
-void image_cache_reset(ImageCache *cache);
-void image_cache_aging(ImageCache *cache);
+int image_cache_hit (ImageCache *cache, uint64_t id);
+void image_cache_init (ImageCache *cache);
+void image_cache_reset (ImageCache *cache);
+void image_cache_aging (ImageCache *cache);
+void image_cache_localize (ImageCache *cache, SpiceImage **image_ptr,
+ SpiceImage *image_store, Drawable *drawable);
+void image_cache_localize_brush (ImageCache *cache, SpiceBrush *brush,
+ SpiceImage *image_store);
+void image_cache_localize_mask (ImageCache *cache, SpiceQMask *mask,
+ SpiceImage *image_store);
#endif