Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index 836825db24afcb0cc417aa175fd792d9b43a2271..f0ad029bea9285b74f03bbb0700ad09d1255c797 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -1323,6 +1323,7 @@ |
if (fPixels) { |
SkASSERT(fPixelRef); |
+ SkASSERT(fPixelLockCount > 0); |
SkASSERT(fPixelRef->isLocked()); |
SkASSERT(fPixelRef->rowBytes() == fRowBytes); |
SkASSERT(fPixelRefOrigin.fX >= 0); |