diff options
-rw-r--r-- | src/core/SkPicturePlayback.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h index 6acc0ae508..b0af6942bc 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]; |