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

Unified Diff: src/images/SkImageDecoder.cpp

Issue 14363003: Updates to skimage tool to use it for testing. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Remove fake support for GIF on Windows and remove a printf. Created 7 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/images/SkImageDecoder.cpp
diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp
index c16efcf1f32797330cf39d29d10ed2da2f5ee951..10721f48dc8d6a70a9d3685423ded83cecf9f547 100644
--- a/src/images/SkImageDecoder.cpp
+++ b/src/images/SkImageDecoder.cpp
@@ -60,7 +60,7 @@ SkImageDecoder::Format SkImageDecoder::getFormat() const {
}
const char* SkImageDecoder::getFormatName() const {
- SkASSERT(SK_ARRAY_COUNT(sFormatName) == kLastKnownFormat);
+ SkASSERT(SK_ARRAY_COUNT(sFormatName) == kLastKnownFormat + 1);
epoger 2013/04/19 21:35:16 It scares me that the previous error wasn't caught
scroggo 2013/04/19 22:12:01 Lucky for us, no one was calling it... Using the
epoger 2013/04/23 16:03:40 Regarding unit tests: Regardless of whether code i
return sFormatName[this->getFormat()];
}

Powered by Google App Engine
This is Rietveld 408576698