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

Unified Diff: src/codec/SkCodec_libpng.h

Issue 1230033004: Allow creating multiple scanline decoders. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Progressive scanline decoder needs to handle rewind on first call. 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 | « src/codec/SkCodec.cpp ('k') | src/codec/SkCodec_libpng.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkCodec_libpng.h
diff --git a/src/codec/SkCodec_libpng.h b/src/codec/SkCodec_libpng.h
index c0fee74e96984d9001b92325e3163db5bbb3292d..cba5c2ad30e75b10ce5585146725b2f26ef794b5 100644
--- a/src/codec/SkCodec_libpng.h
+++ b/src/codec/SkCodec_libpng.h
@@ -26,6 +26,9 @@ public:
// Assumes IsPng was called and returned true.
static SkCodec* NewFromStream(SkStream*);
static bool IsPng(SkStream*);
+
+ virtual ~SkPngCodec();
+
protected:
Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*)
override;
@@ -47,7 +50,6 @@ private:
int fBitDepth;
SkPngCodec(const SkImageInfo&, SkStream*, png_structp, png_infop, int);
- ~SkPngCodec();
// Helper to set up swizzler and color table. Also calls png_read_update_info.
@@ -56,7 +58,7 @@ private:
// Calls rewindIfNeeded and returns true if the decoder can continue.
bool handleRewind();
- bool decodePalette(bool premultiply, int bitDepth, int* ctableCount);
+ bool decodePalette(bool premultiply, int* ctableCount);
void finish();
void destroyReadStruct();
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkCodec_libpng.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698