| Index: src/core/SkBitmapController.cpp
|
| diff --git a/src/core/SkBitmapController.cpp b/src/core/SkBitmapController.cpp
|
| index 7a317b8c2f324f58b9abb0d15b1043986ba108a7..d56bc4a85768132bceb592f31b11d445ca1c9144 100644
|
| --- a/src/core/SkBitmapController.cpp
|
| +++ b/src/core/SkBitmapController.cpp
|
| @@ -170,9 +170,9 @@ bool SkDefaultBitmapControllerState::processMediumRequest(const SkBitmapProvider
|
| return false;
|
| }
|
|
|
| - // Use the largest (non-inverse) scale, to ensure anisotropic consistency.
|
| + // Use the smallest (non-inverse) scale to match the GPU impl.
|
| SkASSERT(invScaleSize.width() >= 0 && invScaleSize.height() >= 0);
|
| - const SkScalar invScale = SkTMin(invScaleSize.width(), invScaleSize.height());
|
| + const SkScalar invScale = SkTMax(invScaleSize.width(), invScaleSize.height());
|
|
|
| if (invScale > SK_Scalar1) {
|
| fCurrMip.reset(SkMipMapCache::FindAndRef(provider.makeCacheDesc()));
|
|
|