| Index: src/lazy/SkCachingPixelRef.cpp
|
| diff --git a/src/lazy/SkCachingPixelRef.cpp b/src/lazy/SkCachingPixelRef.cpp
|
| index 667a94931b1a33fe59b14d53f9990eb084fe8214..b7eaf574aac436223220923d7cd00fab2faa66af 100644
|
| --- a/src/lazy/SkCachingPixelRef.cpp
|
| +++ b/src/lazy/SkCachingPixelRef.cpp
|
| @@ -90,9 +90,7 @@ void* SkCachingPixelRef::onLockPixels(SkColorTable** colorTable) {
|
| }
|
|
|
| void SkCachingPixelRef::onUnlockPixels() {
|
| - if (fScaledCacheId != NULL) {
|
| - SkScaledImageCache::Unlock(
|
| - static_cast<SkScaledImageCache::ID*>(fScaledCacheId));
|
| - fScaledCacheId = NULL;
|
| - }
|
| + SkASSERT(fScaledCacheId != NULL);
|
| + SkScaledImageCache::Unlock( static_cast<SkScaledImageCache::ID*>(fScaledCacheId));
|
| + fScaledCacheId = NULL;
|
| }
|
|
|