commit | 49b9f8c93e76dcde465591346f4a4ff85c34e1a2 | [log] [tgz] |
---|---|---|
author | fmalita <fmalita@chromium.org> | Thu Feb 11 08:06:39 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Thu Feb 11 08:06:39 2016 -0800 |
tree | 1ce27535c4a7ae336102ad5fa760cdbfedf2493a | |
parent | 7001576c7160e20c9c9db2fbe947408989027d66 [diff] [blame] |
Remove SK_SUPPORT_LEGACY_BITMAP_FILTER guard TBR=reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1695443002 Review URL: https://codereview.chromium.org/1695443002
diff --git a/src/core/SkBitmapController.cpp b/src/core/SkBitmapController.cpp index 0555947..eabf135 100644 --- a/src/core/SkBitmapController.cpp +++ b/src/core/SkBitmapController.cpp
@@ -105,12 +105,10 @@ 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);