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

Unified Diff: src/core/SkPicturePlayback.h

Issue 12315138: Only print error message in debug mode. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPicturePlayback.h
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h
index 6acc0ae5088cf5724bb6a34143cec290b5cdb58d..b0af6942bcb1eb49fa00c398b024a92e07019df6 100644
--- a/src/core/SkPicturePlayback.h
+++ b/src/core/SkPicturePlayback.h
@@ -96,7 +96,9 @@ private:
const SkBitmap& getBitmap(SkReader32& reader) {
const int index = reader.readInt();
if (SkBitmapHeap::INVALID_SLOT == index) {
+#ifdef SK_DEBUG
SkDebugf("An invalid bitmap was recorded!\n");
+#endif
return fBadBitmap;
}
return (*fBitmaps)[index];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698