aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkPngCodec.h
diff options
context:
space:
mode:
authorGravatar nagarajan.n <nagarajan.n@samsung.com>2017-09-29 08:23:32 +0530
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-03 12:24:58 +0000
commitdd7ffa5a557bcaa1daebd0f056a8f1bafb992d4d (patch)
tree1705c1bbe6ac9365135db63efac655ccabf974c1 /src/codec/SkPngCodec.h
parent0804b57e12a64cb20c3389b5d36d0af6ed2332c2 (diff)
Handle the error input case in SkPngCodec decode function
This patch handles the error input case in SkPngCodec decode function when there is error in input. Bug: skia:None Change-Id: I53b44f2411cef129b39e76e2cd6b8cd4c754b932 Reviewed-on: https://skia-review.googlesource.com/51860 Commit-Queue: Leon Scroggins <scroggo@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'src/codec/SkPngCodec.h')
-rw-r--r--src/codec/SkPngCodec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkPngCodec.h b/src/codec/SkPngCodec.h
index 8496705258..6848cfc74c 100644
--- a/src/codec/SkPngCodec.h
+++ b/src/codec/SkPngCodec.h
@@ -71,7 +71,7 @@ protected:
* libpng will call any relevant callbacks installed. This will continue decoding
* until it reaches the end of the file, or until a callback tells libpng to stop.
*/
- void processData();
+ bool processData();
Result onStartIncrementalDecode(const SkImageInfo& dstInfo, void* pixels, size_t rowBytes,
const SkCodec::Options&) override;