Index: src/core/SkBitmapScaler.cpp |
diff --git a/src/core/SkBitmapScaler.cpp b/src/core/SkBitmapScaler.cpp |
index c28d4779c7ae60b3bc3c375b16605be8efdd2049..67a9508ee98250e4a401f471a3e5a877f49415ec 100644 |
--- a/src/core/SkBitmapScaler.cpp |
+++ b/src/core/SkBitmapScaler.cpp |
@@ -301,6 +301,8 @@ bool SkBitmapScaler::Resize(SkBitmap* resultPtr, |
convolveProcs, true); |
*resultPtr = result; |
+ resultPtr->lockPixels(); |
+ SkASSERT(NULL != resultPtr->getPixels()); |
return true; |
} |