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

Unified Diff: src/core/SkBitmap.cpp

Issue 1199473002: change old picture serialization to really handle images (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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
Index: src/core/SkBitmap.cpp
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index 49e2c04bfb9a20215e39538e231ec043e0595351..e72533aa588d082b39081c8152ac3e904e682a5a 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -1270,7 +1270,7 @@ bool SkBitmap::requestLock(SkAutoPixmapUnlock* result) const {
return false;
}
- SkPixelRef::LockRequest req = { fInfo.dimensions(), kNone_SkFilterQuality };
+ SkPixelRef::LockRequest req = { pr->info().dimensions(), kNone_SkFilterQuality };
scroggo 2015/06/22 17:40:01 Why this change?
reed1 2015/06/22 18:41:50 I'll add a comment -- the pixelref cannot do subse
SkPixelRef::LockResult res;
if (pr->requestLock(req, &res)) {
SkASSERT(res.fPixels);

Powered by Google App Engine
This is Rietveld 408576698