diff options
Diffstat (limited to 'common/cairo_canvas.h')
-rw-r--r-- | common/cairo_canvas.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/common/cairo_canvas.h b/common/cairo_canvas.h index 7f882b2a..c97380e2 100644 --- a/common/cairo_canvas.h +++ b/common/cairo_canvas.h @@ -26,7 +26,7 @@ #include "canvas_base.h" #include "region.h" -SpiceCanvas *canvas_create(pixman_image_t *image, int bits +SpiceCanvas *canvas_create(int width, int height, uint32_t format #ifdef CAIRO_CANVAS_CACHE , SpiceImageCache *bits_cache , SpicePaletteCache *palette_cache @@ -40,6 +40,21 @@ SpiceCanvas *canvas_create(pixman_image_t *image, int bits #endif ); +SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format, uint8_t *data, size_t stride +#ifdef CAIRO_CANVAS_CACHE + , SpiceImageCache *bits_cache + , SpicePaletteCache *palette_cache +#elif defined(CAIRO_CANVAS_IMAGE_CACHE) + , SpiceImageCache *bits_cache +#endif + , SpiceImageSurfaces *surfaces + , SpiceGlzDecoder *glz_decoder +#ifndef CAIRO_CANVAS_NO_CHUNKS + , SpiceVirtMapping *virt_mapping +#endif + ); + + void cairo_canvas_init(); #endif |