summaryrefslogtreecommitdiffstats
path: root/client/red_gdi_canvas.cpp
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2011-09-18 14:52:04 +0300
committerYonit Halperin <yhalperi@redhat.com>2011-09-26 12:17:57 +0300
commitfcb3b4ce5231218bcf949da4270bd85a2cfb3535 (patch)
treedf40f18d0d2f8f52eade5b539ffd8fa7d78a5d37 /client/red_gdi_canvas.cpp
parentf29dc9b6201f4a575ebb1f2ea61775ab46f4ad1f (diff)
downloadspice-fcb3b4ce5231218bcf949da4270bd85a2cfb3535.tar.gz
spice-fcb3b4ce5231218bcf949da4270bd85a2cfb3535.tar.xz
spice-fcb3b4ce5231218bcf949da4270bd85a2cfb3535.zip
client: rewrite surfaces cache
use std::map instead of a specific template (CHash). There is no need for special template. Moreover, using std::map will allow easy iteration over the surfaces.
Diffstat (limited to 'client/red_gdi_canvas.cpp')
-rw-r--r--client/red_gdi_canvas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/red_gdi_canvas.cpp b/client/red_gdi_canvas.cpp
index 72b31df3..0c388327 100644
--- a/client/red_gdi_canvas.cpp
+++ b/client/red_gdi_canvas.cpp
@@ -25,7 +25,7 @@
GDICanvas::GDICanvas(int width, int height, uint32_t format,
PixmapCache& pixmap_cache, PaletteCache& palette_cache,
- GlzDecoderWindow &glz_decoder_window, CSurfaces &csurfaces)
+ GlzDecoderWindow &glz_decoder_window, SurfacesCache &csurfaces)
: Canvas (pixmap_cache, palette_cache, glz_decoder_window, csurfaces)
, _pixmap (0)
{
@@ -36,7 +36,7 @@ GDICanvas::GDICanvas(int width, int height, uint32_t format,
&_pixmap->get_mutex(),
format, &pixmap_cache.base,
&palette_cache.base,
- &csurfaces.base,
+ &csurfaces,
&glz_decoder(),
&jpeg_decoder(),
&zlib_decoder()))) {