diff options
author | 2015-07-02 10:35:25 -0700 | |
---|---|---|
committer | 2015-07-02 10:35:25 -0700 | |
commit | 6c90e09575c1a77aee060aa475fdb3d25a17d6a0 (patch) | |
tree | 8063f95ad7b6f73447b1f123f70bb9bad21a4046 /src/codec/SkCodec_libpng.h | |
parent | f1b44cb6f7a9bc54d0e4dbb58edc442d00b54a6c (diff) |
Revert of Fixing libpng transform use (patchset #5 id:80001 of https://codereview.chromium.org/1214203005/)
Reason for revert:
DEPS roll failing
Original issue's description:
> This change:
> - supports kGray correctly
> - avoid extra call to png_get_IHDR by storing the bit depth
> - call transforms as needed
> - checks for tRNS alpha value in RGB and GRAY color types
>
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/9693037fd41b7ce545b44beaa3489dcfd915018c
TBR=scroggo@google.com,msarett@google.com,emmaleer@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/1213743004
Diffstat (limited to 'src/codec/SkCodec_libpng.h')
-rw-r--r-- | src/codec/SkCodec_libpng.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/codec/SkCodec_libpng.h b/src/codec/SkCodec_libpng.h index c0fee74e96..a105c3c5e3 100644 --- a/src/codec/SkCodec_libpng.h +++ b/src/codec/SkCodec_libpng.h @@ -44,17 +44,14 @@ private: SkSwizzler::SrcConfig fSrcConfig; int fNumberPasses; bool fReallyHasAlpha; - int fBitDepth; - SkPngCodec(const SkImageInfo&, SkStream*, png_structp, png_infop, int); + SkPngCodec(const SkImageInfo&, SkStream*, png_structp, png_infop); ~SkPngCodec(); - // Helper to set up swizzler and color table. Also calls png_read_update_info. Result initializeSwizzler(const SkImageInfo& requestedInfo, void* dst, size_t rowBytes, const Options&, SkPMColor*, int* ctableCount); - - // Calls rewindIfNeeded and returns true if the decoder can continue. + // Calls rewindIfNeeded, and returns true if the decoder can continue. bool handleRewind(); bool decodePalette(bool premultiply, int bitDepth, int* ctableCount); void finish(); |