diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2011-09-18 14:52:04 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2011-11-02 11:30:21 +0200 |
commit | f22caf9aee2aa64313468b04efa615e2e1c7f8b3 (patch) | |
tree | f34d73c8f99b8eef51c43378617411fd5def8353 /client/red_sw_canvas.cpp | |
parent | 76966571748efa32a706d21830349ab2431aa4e6 (diff) | |
download | spice-f22caf9aee2aa64313468b04efa615e2e1c7f8b3.tar.gz spice-f22caf9aee2aa64313468b04efa615e2e1c7f8b3.tar.xz spice-f22caf9aee2aa64313468b04efa615e2e1c7f8b3.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.
(cherry picked from commit fcb3b4ce5231218bcf949da4270bd85a2cfb3535 branch 0.8)
Conflicts:
client/display_channel.cpp
Diffstat (limited to 'client/red_sw_canvas.cpp')
-rw-r--r-- | client/red_sw_canvas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/red_sw_canvas.cpp b/client/red_sw_canvas.cpp index 782cacab..860e2a56 100644 --- a/client/red_sw_canvas.cpp +++ b/client/red_sw_canvas.cpp @@ -37,7 +37,7 @@ SCanvas::SCanvas(bool onscreen, int width, int height, uint32_t format, RedWindow *win, 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) { @@ -50,7 +50,7 @@ SCanvas::SCanvas(bool onscreen, _pixmap->get_stride(), &pixmap_cache.base, &palette_cache.base, - &csurfaces.base, + &csurfaces, &glz_decoder(), &jpeg_decoder(), &zlib_decoder()); @@ -58,7 +58,7 @@ SCanvas::SCanvas(bool onscreen, _canvas = canvas_create(width, height, format, &pixmap_cache.base, &palette_cache.base, - &csurfaces.base, + &csurfaces, &glz_decoder(), &jpeg_decoder(), &zlib_decoder()); |