diff options
Diffstat (limited to 'src/core/SkBitmapScaler.cpp')
-rw-r--r-- | src/core/SkBitmapScaler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkBitmapScaler.cpp b/src/core/SkBitmapScaler.cpp index c28d4779c7..67a9508ee9 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; } |