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

Unified Diff: src/codec/SkCodecPriv.h

Issue 1305123002: Scanline decoding for gifs (Closed) Base URL: https://skia.googlesource.com/skia.git@real-bmp-scan
Patch Set: Created 5 years, 4 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/SkCodecPriv.h
diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h
index 2c64bddc735388f1617f232bef6260604e1124e5..74b39df0b58b3302c0f9576681cb51bbc3134ec6 100644
--- a/src/codec/SkCodecPriv.h
+++ b/src/codec/SkCodecPriv.h
@@ -98,7 +98,7 @@ static inline void copy_color_table(const SkImageInfo& dstInfo, SkColorTable* co
SkASSERT(NULL != inputColorPtr);
SkASSERT(NULL != inputColorCount);
SkASSERT(NULL != colorTable);
- memcpy(inputColorPtr, colorTable->readColors(), *inputColorCount * 4);
+ memcpy(inputColorPtr, colorTable->readColors(), *inputColorCount * sizeof(SkPMColor));
}
}
@@ -184,7 +184,7 @@ static inline uint32_t get_int(uint8_t* buffer, uint32_t i) {
#endif
}
-#ifdef SK_PRINT_CODEC_MESSAGES
+#ifndef SK_PRINT_CODEC_MESSAGES
msarett 2015/08/24 23:20:12 For debugging, will fix.
#define SkCodecPrintf SkDebugf
#else
#define SkCodecPrintf(...)

Powered by Google App Engine
This is Rietveld 408576698