diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2011-09-18 14:52:04 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2011-09-26 12:17:57 +0300 |
commit | fcb3b4ce5231218bcf949da4270bd85a2cfb3535 (patch) | |
tree | df40f18d0d2f8f52eade5b539ffd8fa7d78a5d37 /client/red_gl_canvas.cpp | |
parent | f29dc9b6201f4a575ebb1f2ea61775ab46f4ad1f (diff) | |
download | spice-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_gl_canvas.cpp')
-rw-r--r-- | client/red_gl_canvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/red_gl_canvas.cpp b/client/red_gl_canvas.cpp index d7841b94..e2bff7fd 100644 --- a/client/red_gl_canvas.cpp +++ b/client/red_gl_canvas.cpp @@ -27,7 +27,7 @@ GCanvas::GCanvas(int width, int height, uint32_t format, RedWindow *win, RenderType rendertype, 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) , _textures_lost (false) @@ -39,7 +39,7 @@ GCanvas::GCanvas(int width, int height, uint32_t format, RedWindow *win, SPICE_SURFACE_FMT_DEPTH(format), &pixmap_cache.base, &palette_cache.base, - &csurfaces.base, + &csurfaces, &glz_decoder(), &jpeg_decoder(), &zlib_decoder()))) { |