aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/c
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-06-22 12:48:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-22 12:48:26 -0700
commit871872f3f247f6b699617f6d9ef50ef5da6fbe74 (patch)
tree50358d6f699dd433607d9bc3c29da63e44c5d00f /include/c
parentc1f56b518218d1caa65d6b7101bebf0d28c02a92 (diff)
change old picture serialization to really handle images
Diffstat (limited to 'include/c')
-rw-r--r--include/c/sk_image.h2
-rw-r--r--include/c/sk_types.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/include/c/sk_image.h b/include/c/sk_image.h
index 34682c72d3..c9973ac125 100644
--- a/include/c/sk_image.h
+++ b/include/c/sk_image.h
@@ -28,7 +28,7 @@ sk_image_t* sk_image_new_raster_copy(const sk_imageinfo_t*, const void* pixels,
* On success, the encoded data may be processed immediately, or it may be ref()'d for later
* use.
*/
-sk_image_t* sk_image_new_from_data(const sk_data_t* encoded);
+sk_image_t* sk_image_new_from_encoded(const sk_data_t* encoded, const sk_irect_t* subset);
sk_data_t* sk_image_encode(const sk_image_t*);
diff --git a/include/c/sk_types.h b/include/c/sk_types.h
index dc530f374b..00632e0af3 100644
--- a/include/c/sk_types.h
+++ b/include/c/sk_types.h
@@ -68,6 +68,13 @@ typedef struct {
} sk_point_t;
typedef struct {
+ int32_t left;
+ int32_t top;
+ int32_t right;
+ int32_t bottom;
+} sk_irect_t;
+
+typedef struct {
float left;
float top;
float right;