Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: src/codec/SkCodec_libpng.cpp

Issue 1242423002: Remove png_read_end from SkPngScanlineDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkCodec_libpng.cpp
diff --git a/src/codec/SkCodec_libpng.cpp b/src/codec/SkCodec_libpng.cpp
index 699ab398d3a36df70cfbbb1c24c96886047d7f3c..c1f0025151fde0f729907bd570a1c2b5f8227b31 100644
--- a/src/codec/SkCodec_libpng.cpp
+++ b/src/codec/SkCodec_libpng.cpp
@@ -601,9 +601,7 @@ public:
fSrcRow = static_cast<uint8_t*>(fStorage.get());
}
- ~SkPngScanlineDecoder() {
- fCodec->finish();
- }
+ ~SkPngScanlineDecoder() {}
scroggo 2015/07/20 20:07:25 nit: I think you can remove this line completely,
SkCodec::Result onGetScanlines(void* dst, int count, size_t rowBytes) override {
if (setjmp(png_jmpbuf(fCodec->fPng_ptr))) {
@@ -662,9 +660,7 @@ public:
fGarbageRowPtr = static_cast<uint8_t*>(fGarbageRow.get());
}
- ~SkPngInterlacedScanlineDecoder() {
- fCodec->finish();
- }
+ ~SkPngInterlacedScanlineDecoder() {}
scroggo 2015/07/20 20:07:25 Again, I *think* the compiler will generate the sa
SkCodec::Result onGetScanlines(void* dst, int count, size_t dstRowBytes) override {
//rewind stream if have previously called onGetScanlines,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698