Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index b1198d35d4a762fbc97771db608e01955b5efa90..563fc2875c41221e1cacec39d108febd1f084377 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -1361,6 +1361,7 @@ bool SkBitmap::requestLock(SkAutoPixmapUnlock* result) const { |
SkPixelRef::LockRequest req = { fInfo.dimensions(), kNone_SkFilterQuality }; |
SkPixelRef::LockResult res; |
if (pr->requestLock(req, &res)) { |
+ SkASSERT(res.fPixels); |
// The bitmap may be a subset of the pixelref's dimensions |
SkASSERT(fPixelRefOrigin.x() + fInfo.width() <= res.fSize.width()); |
SkASSERT(fPixelRefOrigin.y() + fInfo.height() <= res.fSize.height()); |