| Index: src/lazy/SkCachingPixelRef.cpp
|
| diff --git a/src/lazy/SkCachingPixelRef.cpp b/src/lazy/SkCachingPixelRef.cpp
|
| index 1459567e0b4a3e3c1dae4c94cc49c0bb12846869..3c8d6f8e86ae257faf1ab90731ad5ffc2008ebfb 100644
|
| --- a/src/lazy/SkCachingPixelRef.cpp
|
| +++ b/src/lazy/SkCachingPixelRef.cpp
|
| @@ -45,9 +45,8 @@ bool SkCachingPixelRef::onNewLockPixels(LockRec* rec) {
|
| }
|
|
|
| const SkImageInfo& info = this->info();
|
| - if (!SkBitmapCache::Find(this->getGenerationID(),
|
| - SkIRect::MakeWH(info.width(), info.height()),
|
| - &fLockedBitmap)) {
|
| + if (!SkBitmapCache::Find(
|
| + this->getGenerationID(), info.shape(), &fLockedBitmap)) {
|
| // Cache has been purged, must re-decode.
|
| if (!fLockedBitmap.tryAllocPixels(info, fRowBytes)) {
|
| fErrorInDecoding = true;
|
| @@ -58,9 +57,8 @@ bool SkCachingPixelRef::onNewLockPixels(LockRec* rec) {
|
| return false;
|
| }
|
| fLockedBitmap.setImmutable();
|
| - SkBitmapCache::Add(this->getGenerationID(),
|
| - SkIRect::MakeWH(info.width(), info.height()),
|
| - fLockedBitmap);
|
| + SkBitmapCache::Add(
|
| + this->getGenerationID(), info.shape(), fLockedBitmap);
|
| }
|
|
|
| // Now bitmap should contain a concrete PixelRef of the decoded image.
|
|
|