Index: src/c/sk_surface.cpp |
diff --git a/src/c/sk_surface.cpp b/src/c/sk_surface.cpp |
index 15f68dba11854850814df9e7471bdfe2ddc2fa80..280897b354b86c13038da9e6a9c3b9cfc27de9ec 100644 |
--- a/src/c/sk_surface.cpp |
+++ b/src/c/sk_surface.cpp |
@@ -207,8 +207,9 @@ sk_image_t* sk_image_new_raster_copy(const sk_imageinfo_t* cinfo, const void* pi |
return (sk_image_t*)SkImage::NewRasterCopy(info, pixels, rowBytes); |
} |
-sk_image_t* sk_image_new_from_data(const sk_data_t* cdata) { |
- return ToImage(SkImage::NewFromData(AsData(cdata))); |
+sk_image_t* sk_image_new_from_encoded(const sk_data_t* cdata, const sk_irect_t* subset) { |
+ return ToImage(SkImage::NewFromEncoded(AsData(cdata), |
+ reinterpret_cast<const SkIRect*>(subset))); |
} |
sk_data_t* sk_image_encode(const sk_image_t* cimage) { |