Index: src/codec/SkCodec_libpng.h |
diff --git a/src/codec/SkCodec_libpng.h b/src/codec/SkCodec_libpng.h |
index c2a5f4a7075dc5b66415040c0b3ff2c26a16b020..9809b0c39a2c92c31b4a38c7342e0c3a8c152762 100644 |
--- a/src/codec/SkCodec_libpng.h |
+++ b/src/codec/SkCodec_libpng.h |
@@ -7,7 +7,6 @@ |
#include "SkCodec.h" |
#include "SkColorTable.h" |
-#include "SkPngChunkReader.h" |
#include "SkEncodedFormat.h" |
#include "SkImageInfo.h" |
#include "SkRefCnt.h" |
@@ -22,7 +21,7 @@ |
static bool IsPng(SkStream*); |
// Assume IsPng was called and returned true. |
- static SkCodec* NewFromStream(SkStream*, SkPngChunkReader* = NULL); |
+ static SkCodec* NewFromStream(SkStream*); |
virtual ~SkPngCodec(); |
@@ -42,7 +41,7 @@ |
return fSwizzler; |
} |
- SkPngCodec(const SkImageInfo&, SkStream*, SkPngChunkReader*, png_structp, png_infop, int, int); |
+ SkPngCodec(const SkImageInfo&, SkStream*, png_structp, png_infop, int, int); |
png_structp png_ptr() { return fPng_ptr; } |
SkSwizzler* swizzler() { return fSwizzler; } |
@@ -63,18 +62,17 @@ |
virtual AlphaState alphaInScanlineDecode() const = 0; |
private: |
- SkAutoTUnref<SkPngChunkReader> fPngChunkReader; |
- png_structp fPng_ptr; |
- png_infop fInfo_ptr; |
+ png_structp fPng_ptr; |
+ png_infop fInfo_ptr; |
// These are stored here so they can be used both by normal decoding and scanline decoding. |
- SkAutoTUnref<SkColorTable> fColorTable; // May be unpremul. |
- SkAutoTDelete<SkSwizzler> fSwizzler; |
+ SkAutoTUnref<SkColorTable> fColorTable; // May be unpremul. |
+ SkAutoTDelete<SkSwizzler> fSwizzler; |
- SkSwizzler::SrcConfig fSrcConfig; |
- const int fNumberPasses; |
- int fBitDepth; |
- AlphaState fAlphaState; |
+ SkSwizzler::SrcConfig fSrcConfig; |
+ const int fNumberPasses; |
+ int fBitDepth; |
+ AlphaState fAlphaState; |
bool decodePalette(bool premultiply, int* ctableCount); |
void destroyReadStruct(); |