diff options
author | reed <reed@google.com> | 2016-02-08 11:57:52 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-08 11:57:52 -0800 |
commit | 0488202f49d83938558357f2d3fccd7ea6933f6e (patch) | |
tree | 824876a3914e474989411fa63a86ae4514924ab3 /src/core/SkBitmapController.cpp | |
parent | 772cc404e68af12bb5440495caf36307580aadef (diff) |
remove dead SK_SUPPORT_LEGACY_NEG_SCALE_HQ flag
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1674263003
Review URL: https://codereview.chromium.org/1674263003
Diffstat (limited to 'src/core/SkBitmapController.cpp')
-rw-r--r-- | src/core/SkBitmapController.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/SkBitmapController.cpp b/src/core/SkBitmapController.cpp index 7a317b8c2f..3469773666 100644 --- a/src/core/SkBitmapController.cpp +++ b/src/core/SkBitmapController.cpp @@ -66,10 +66,7 @@ static inline bool cache_size_okay(const SkBitmapProvider& provider, const SkMat // Skip the division step: const size_t size = provider.info().getSafeSize(provider.info().minRowBytes()); SkScalar invScaleSqr = invMat.getScaleX() * invMat.getScaleY(); -#ifndef SK_SUPPORT_LEGACY_NEG_SCALE_HQ - invScaleSqr = SkScalarAbs(invScaleSqr); -#endif - return size < (maximumAllocation * invScaleSqr); + return size < (maximumAllocation * SkScalarAbs(invScaleSqr)); } /* @@ -101,10 +98,8 @@ bool SkDefaultBitmapControllerState::processHQRequest(const SkBitmapProvider& pr invScaleX = scale.width(); invScaleY = scale.height(); } -#ifndef SK_SUPPORT_LEGACY_NEG_SCALE_HQ invScaleX = SkScalarAbs(invScaleX); invScaleY = SkScalarAbs(invScaleY); -#endif if (SkScalarNearlyEqual(invScaleX, 1) && SkScalarNearlyEqual(invScaleY, 1)) { return false; // no need for HQ |