aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkPngCodec.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-08-17 08:54:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-17 08:54:08 -0700
commit549ca329cfbd0ffaa436c7208a67d9af8b2e6e7d (patch)
treebf6f67b51b483481380466d99544163aaa21b88f /src/codec/SkPngCodec.h
parentd24ee1419f17fe3ac70373ca74136a766522e399 (diff)
Modify SkPngCodec to recognize 565 images from the sBIT chunk
Conveniently, SkPngImageEncoder already writes the sBIT chunk appropriately. BUG=skia:5616 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2212563003 Review-Url: https://codereview.chromium.org/2212563003
Diffstat (limited to 'src/codec/SkPngCodec.h')
-rw-r--r--src/codec/SkPngCodec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codec/SkPngCodec.h b/src/codec/SkPngCodec.h
index 69ecef1313..b689f6fbae 100644
--- a/src/codec/SkPngCodec.h
+++ b/src/codec/SkPngCodec.h
@@ -46,8 +46,8 @@ protected:
virtual int readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int count,
int startRow) = 0;
- SkPngCodec(int width, int height, const SkEncodedInfo&, SkStream*, SkPngChunkReader*,
- png_structp, png_infop, int, int, sk_sp<SkColorSpace>);
+ SkPngCodec(const SkEncodedInfo&, const SkImageInfo&, SkStream*, SkPngChunkReader*,
+ png_structp, png_infop, int, int);
SkAutoTUnref<SkPngChunkReader> fPngChunkReader;
png_structp fPng_ptr;