fmalita 2016-02-11 08:06:39 -08:00 committed by Commit bot
parent 7001576c71
commit 49b9f8c93e

View File

@ -105,12 +105,10 @@ bool SkDefaultBitmapControllerState::processHQRequest(const SkBitmapProvider& pr
return false; // no need for HQ return false; // no need for HQ
} }
#ifndef SK_SUPPORT_LEGACY_HQ_DOWNSAMPLING
if (invScaleX > 1 || invScaleY > 1) { if (invScaleX > 1 || invScaleY > 1) {
return false; // only use HQ when upsampling return false; // only use HQ when upsampling
} }
#endif
const int dstW = SkScalarRoundToScalar(provider.width() / invScaleX); const int dstW = SkScalarRoundToScalar(provider.width() / invScaleX);
const int dstH = SkScalarRoundToScalar(provider.height() / invScaleY); const int dstH = SkScalarRoundToScalar(provider.height() / invScaleY);
const SkBitmapCacheDesc desc = provider.makeCacheDesc(dstW, dstH); const SkBitmapCacheDesc desc = provider.makeCacheDesc(dstW, dstH);