[Spice-commits] common/sw_canvas.c common/sw_canvas.h
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 4 08:04:08 UTC 2018
common/sw_canvas.c | 26 --------------------------
common/sw_canvas.h | 11 -----------
2 files changed, 37 deletions(-)
New commits:
commit 3def5a84480774c95833a339af17efc290e94c61
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Tue Jul 3 16:10:23 2018 +0200
swcanvas: Remove canvas_create()
Nothing calls it in spice-gtk or spice-server
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index c41edb1..c5528c2 100644
--- a/common/sw_canvas.c
+++ b/common/sw_canvas.c
@@ -1222,32 +1222,6 @@ static SpiceCanvas *canvas_create_common(pixman_image_t *image,
return (SpiceCanvas *)canvas;
}
-SpiceCanvas *canvas_create(int width, int height, uint32_t format,
- SpiceImageCache *bits_cache,
-#ifdef SW_CANVAS_CACHE
- SpicePaletteCache *palette_cache,
-#endif
- SpiceImageSurfaces *surfaces,
- SpiceGlzDecoder *glz_decoder,
- SpiceJpegDecoder *jpeg_decoder,
- SpiceZlibDecoder *zlib_decoder)
-{
- pixman_image_t *image;
-
- image = pixman_image_create_bits(spice_surface_format_to_pixman(format),
- width, height, NULL, 0);
-
- return canvas_create_common(image, format,
- bits_cache,
-#ifdef SW_CANVAS_CACHE
- palette_cache,
-#endif
- surfaces,
- glz_decoder,
- jpeg_decoder,
- zlib_decoder);
-}
-
SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format,
uint8_t *data, int stride,
SpiceImageCache *bits_cache,
diff --git a/common/sw_canvas.h b/common/sw_canvas.h
index aa9e46f..31f0644 100644
--- a/common/sw_canvas.h
+++ b/common/sw_canvas.h
@@ -29,17 +29,6 @@
SPICE_BEGIN_DECLS
-SpiceCanvas *canvas_create(int width, int height, uint32_t format
- , SpiceImageCache *bits_cache
-#ifdef SW_CANVAS_CACHE
- , SpicePaletteCache *palette_cache
-#endif
- , SpiceImageSurfaces *surfaces
- , SpiceGlzDecoder *glz_decoder
- , SpiceJpegDecoder *jpeg_decoder
- , SpiceZlibDecoder *zlib_decoder
- );
-
SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format, uint8_t *data, int stride
, SpiceImageCache *bits_cache
#ifdef SW_CANVAS_CACHE
More information about the Spice-commits
mailing list