summaryrefslogtreecommitdiff
path: root/src/skia
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-12 16:12:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-12 16:12:47 +0100
commit16426dab486767cb16dfaf5158c5d4b3317546b0 (patch)
treecf2d5c0ce495b1e11df1e01edaef422aba34b116 /src/skia
parentd647d4f7db1f9b65f5d7f64574b1989b830aaa7c (diff)
skia: Compile fix for changes to map-to-image
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/skia')
-rw-r--r--src/skia/cairo-skia-surface.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/skia/cairo-skia-surface.cpp b/src/skia/cairo-skia-surface.cpp
index cc76cfb52..bb785e192 100644
--- a/src/skia/cairo-skia-surface.cpp
+++ b/src/skia/cairo-skia-surface.cpp
@@ -97,16 +97,7 @@ _cairo_skia_surface_map_to_image (void *asurface,
cairo_skia_surface_t *surface = (cairo_skia_surface_t *) asurface;
surface->bitmap->lockPixels ();
-
- /* XXX: Broken! */
- if (extents->width < surface->image.width ||
- extents->height < surface->image.height)
- {
- return _cairo_surface_create_for_rectangle_int (&surface->image.base,
- extents);
- }
-
- return cairo_surface_reference (&surface->image.base);
+ return _cairo_image_surface_map_to_image (&surface->image, extents);
}
static cairo_int_status_t
@@ -114,9 +105,12 @@ _cairo_skia_surface_unmap_image (void *asurface,
cairo_image_surface_t *image)
{
cairo_skia_surface_t *surface = (cairo_skia_surface_t *) asurface;
+ cairo_int_status_t status;
+ status = _cairo_image_surface_unmap_image (&surface->image, image);
surface->bitmap->unlockPixels ();
- return CAIRO_INT_STATUS_SUCCESS;
+
+ return status;
}
static cairo_status_t