Index: src/core/SkBitmapController.cpp |
diff --git a/src/core/SkBitmapController.cpp b/src/core/SkBitmapController.cpp |
index 055594743172e564f1ba8e331a57294ef5982e0d..eabf1356bb886cf16fb3000e6b52876118280e28 100644 |
--- a/src/core/SkBitmapController.cpp |
+++ b/src/core/SkBitmapController.cpp |
@@ -105,12 +105,10 @@ bool SkDefaultBitmapControllerState::processHQRequest(const SkBitmapProvider& pr |
return false; // no need for HQ |
} |
-#ifndef SK_SUPPORT_LEGACY_HQ_DOWNSAMPLING |
if (invScaleX > 1 || invScaleY > 1) { |
return false; // only use HQ when upsampling |
} |
-#endif |
- |
+ |
const int dstW = SkScalarRoundToScalar(provider.width() / invScaleX); |
const int dstH = SkScalarRoundToScalar(provider.height() / invScaleY); |
const SkBitmapCacheDesc desc = provider.makeCacheDesc(dstW, dstH); |