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

Unified Diff: src/codec/SkCodec_libgif.cpp

Issue 1061713007: Adding png scanline decoding to kIndex8 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: ctableCount requirements Created 5 years, 8 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
Index: src/codec/SkCodec_libgif.cpp
diff --git a/src/codec/SkCodec_libgif.cpp b/src/codec/SkCodec_libgif.cpp
index bfa6e03eec6d8553d6f6fc340f6654ffd1fa6aaf..fb578f2bea6de8b8efded798b43500a90a64af4a 100644
--- a/src/codec/SkCodec_libgif.cpp
+++ b/src/codec/SkCodec_libgif.cpp
@@ -343,7 +343,6 @@ SkCodec::Result SkGifCodec::onGetPixels(const SkImageInfo& dstInfo,
if (kIndex_8_SkColorType == dstColorType) {
SkASSERT(NULL != inputColorPtr);
SkASSERT(NULL != inputColorCount);
- SkASSERT(256 == *inputColorCount);
colorTable = inputColorPtr;
} else {
colorTable = alternateColorPtr;

Powered by Google App Engine
This is Rietveld 408576698