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

Unified Diff: src/codec/SkCodec_libpng.h

Issue 1321433002: Add subsetting to SkScaledCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@gif-scan
Patch Set: Rebase - it compiles but I'm sure everything is broken Created 5 years, 2 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_libgif.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 c24995946334b162b28d2e826d826052dd926da3..dd66b5651eb1b59ce5aa771ddefd9b2f5751e4b2 100644
--- a/src/codec/SkCodec_libpng.h
+++ b/src/codec/SkCodec_libpng.h
@@ -18,7 +18,6 @@
#endif
#include "png.h"
-class SkScanlineDecoder;
class SkStream;
class SkPngCodec : public SkCodec {
@@ -27,7 +26,6 @@ public:
// Assume IsPng was called and returned true.
static SkCodec* NewFromStream(SkStream*);
- static SkScanlineDecoder* NewSDFromStream(SkStream*);
virtual ~SkPngCodec();
@@ -41,7 +39,7 @@ protected:
// Helper to set up swizzler and color table. Also calls png_read_update_info.
Result initializeSwizzler(const SkImageInfo& requestedInfo, const Options&,
- SkPMColor*, int* ctableCount);
+ SkPMColor*, int* ctableCount, int subsetLeft, int subsetWidth);
SkSampler* getSampler(bool createIfNecessary) override { return fSwizzler; }
SkPngCodec(const SkImageInfo&, SkStream*, png_structp, png_infop, int, int);
@@ -75,7 +73,6 @@ private:
SkSwizzler::SrcConfig fSrcConfig;
const int fNumberPasses;
int fBitDepth;
-
AlphaState fAlphaState;
bool decodePalette(bool premultiply, int* ctableCount);
« no previous file with comments | « src/codec/SkCodec_libgif.cpp ('k') | src/codec/SkCodec_libpng.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698