Index: src/core/SkBitmapProcState.cpp |
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp |
index 4e9a575e02ec0f2f5424544762f197a14fe06669..6c1dc30449a81ed0a1ddd7686a2cd5eaab5b1a31 100644 |
--- a/src/core/SkBitmapProcState.cpp |
+++ b/src/core/SkBitmapProcState.cpp |
@@ -260,10 +260,11 @@ bool SkBitmapProcState::possiblyScaleImage() { |
if (scaleSqd > SK_Scalar1) { |
fCurrMip.reset(SkMipMapCache::FindAndRef(fOrigBitmap)); |
if (NULL == fCurrMip.get()) { |
- fCurrMip.reset(SkMipMapCache::AddAndRef(fOrigBitmap)); |
+ fCurrMip.reset(SkMipMap::Build(fOrigBitmap)); |
if (NULL == fCurrMip.get()) { |
return false; |
} |
+ SkMipMapCache::Add(fOrigBitmap, fCurrMip); |
} |
SkScalar levelScale = SkScalarInvert(SkScalarSqrt(scaleSqd)); |