From 871872f3f247f6b699617f6d9ef50ef5da6fbe74 Mon Sep 17 00:00:00 2001 From: reed Date: Mon, 22 Jun 2015 12:48:26 -0700 Subject: change old picture serialization to really handle images BUG=skia:3965 Review URL: https://codereview.chromium.org/1199473002 --- include/c/sk_image.h | 2 +- include/c/sk_types.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'include/c') 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 @@ -67,6 +67,13 @@ typedef struct { float y; } 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; -- cgit v1.2.3