| Index: src/lazy/SkCachingPixelRef.cpp
|
| diff --git a/src/lazy/SkCachingPixelRef.cpp b/src/lazy/SkCachingPixelRef.cpp
|
| index 76510f63cd53edca3e5d3571c3a33a78798c784a..97503e5fcc5771eb2add021d663c060d07ec717d 100644
|
| --- a/src/lazy/SkCachingPixelRef.cpp
|
| +++ b/src/lazy/SkCachingPixelRef.cpp
|
| @@ -54,7 +54,7 @@ bool SkCachingPixelRef::onNewLockPixels(LockRec* rec) {
|
| &bitmap);
|
| if (NULL == fScaledCacheId) {
|
| // Cache has been purged, must re-decode.
|
| - if ((!bitmap.setInfo(info, fRowBytes)) || !bitmap.allocPixels()) {
|
| + if (!bitmap.allocPixels(info, fRowBytes)) {
|
| fErrorInDecoding = true;
|
| return false;
|
| }
|
|
|