Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index 49e2c04bfb9a20215e39538e231ec043e0595351..8f799125e4d10a9252c3690ad14ea24ab25a1cd8 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -1270,7 +1270,9 @@ bool SkBitmap::requestLock(SkAutoPixmapUnlock* result) const { |
return false; |
} |
- SkPixelRef::LockRequest req = { fInfo.dimensions(), kNone_SkFilterQuality }; |
+ // We have to lock the whole thing (using the pixelref's dimensions) until the api supports |
+ // a partial lock (with offset/origin). Hence we can't use our fInfo. |
+ SkPixelRef::LockRequest req = { pr->info().dimensions(), kNone_SkFilterQuality }; |
SkPixelRef::LockResult res; |
if (pr->requestLock(req, &res)) { |
SkASSERT(res.fPixels); |