Updated Skia-Webp wrapper to work with latest version (0.1.2)
issue: 3291572
Change-Id: I86258b82a9105e5db459c436d8bcfa1841609ed7
diff --git a/src/images/SkImageDecoder_libwebp.cpp b/src/images/SkImageDecoder_libwebp.cpp
index 6fee747..4d79213 100644
--- a/src/images/SkImageDecoder_libwebp.cpp
+++ b/src/images/SkImageDecoder_libwebp.cpp
@@ -246,7 +246,7 @@
VP8kClip[(y) + (goff) - YUV_RANGE_MIN], \
VP8kClip[(y) + (boff) - YUV_RANGE_MIN])
-static void block_put(const VP8Io* io) {
+static int block_put(const VP8Io* io) {
WEBPImage *p = (WEBPImage*) io->opaque;
SkBitmap* decodedBitmap = p->image;
@@ -282,7 +282,7 @@
break;
default:
// Unsupported config
- return;
+ return 0;
}
for (j = 0; j < mb_h;) {
@@ -434,7 +434,7 @@
v += io->uv_stride;
}
- return;
+ return 1;
}
static int block_setup(VP8Io* io) {