summaryrefslogtreecommitdiff
path: root/src/cairo-type3-glyph-surface.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-07-22 00:36:03 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-07-26 14:55:58 +0100
commita69335a84eb9225b477cc8c753470eb3805b852c (patch)
tree7a28492ebf390e513391af587f00c017e4ca6301 /src/cairo-type3-glyph-surface.c
parentc6812c6a3679c3b8b9584e119e0d7fd93e09ae49 (diff)
downloadcairo-a69335a84eb9225b477cc8c753470eb3805b852c.tar.gz
API: map-to-image and create-similar-image
A common requirement is the fast upload of pixel data. In order to allocate the most appropriate image buffer, we need knowledge of the destination. The most obvious example is that we could use a shared-memory region for the image to avoid the transfer cost of uploading the pixels to the X server. Similarly, gl, win32, quartz... The other side of the equation is that for manual modification of a remote surface, it would be more efficient if we can create a similar image to reduce the transfer costs. This strategy is already followed for the destination fallbacks and this merely exposes the same capability for the application fallbacks. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-type3-glyph-surface.c')
-rw-r--r--src/cairo-type3-glyph-surface.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cairo-type3-glyph-surface.c b/src/cairo-type3-glyph-surface.c
index bad0d3b26..93c3a6a3f 100644
--- a/src/cairo-type3-glyph-surface.c
+++ b/src/cairo-type3-glyph-surface.c
@@ -322,10 +322,15 @@ _cairo_type3_glyph_surface_show_glyphs (void *abstract_surface,
static const cairo_surface_backend_t cairo_type3_glyph_surface_backend = {
CAIRO_INTERNAL_SURFACE_TYPE_TYPE3_GLYPH,
+ _cairo_type3_glyph_surface_finish,
+
_cairo_default_context_create,
NULL, /* _cairo_type3_glyph_surface_create_similar */
- _cairo_type3_glyph_surface_finish,
+ NULL, /* _cairo_type3_glyph_surface_create_similar_image */
+ NULL, /* _cairo_type3_glyph_surface_create_map_to_image */
+ NULL, /* _cairo_type3_glyph_surface_create_unmap_image */
+
NULL, /* acquire_source_image */
NULL, /* release_source_image */
NULL, /* acquire_dest_image */