diff options
author | Robert Phillips <robertphillips@google.com> | 2018-05-09 19:00:28 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-09 19:00:48 +0000 |
commit | ef4f7b4dc1e4c315dab7bd387627cfb9e04bcefd (patch) | |
tree | 53288e8001b17715aa5edcace2867ae03ba76cd9 /src/core/SkMatrixImageFilter.cpp | |
parent | 010ce2bc74a82bb2fc310b145799468637d5fcb5 (diff) |
Revert "Fix clipping of SkMatrixImageFilter input"
This reverts commit cb8b5d1101d0a1bf7c78f3d1fec73afbe470994c.
Reason for revert: Chrome layout tests
Original change's description:
> Fix clipping of SkMatrixImageFilter input
>
> Bug: skia:7931
> Change-Id: I3e424dcd5c0b04542976f4f59a5836e7c3079d06
> Reviewed-on: https://skia-review.googlesource.com/127020
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Commit-Queue: Robert Phillips <robertphillips@google.com>
TBR=egdaniel@google.com,robertphillips@google.com
Change-Id: I6b871071e180c45016038dcf2b01d2c96e93911c
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:7931
Reviewed-on: https://skia-review.googlesource.com/127160
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core/SkMatrixImageFilter.cpp')
-rw-r--r-- | src/core/SkMatrixImageFilter.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/SkMatrixImageFilter.cpp b/src/core/SkMatrixImageFilter.cpp index 212b787d18..a27ca980f1 100644 --- a/src/core/SkMatrixImageFilter.cpp +++ b/src/core/SkMatrixImageFilter.cpp @@ -131,15 +131,7 @@ SkIRect SkMatrixImageFilter::onFilterNodeBounds(const SkIRect& src, const SkMatr matrix.postConcat(ctm); SkRect floatBounds; matrix.mapRect(&floatBounds, SkRect::Make(src)); - SkIRect result = floatBounds.roundOut(); - - if (kReverse_MapDirection == direction && kNone_SkFilterQuality != fFilterQuality) { - // When filtering we might need some pixels in the source that might be otherwise - // clipped off. - result.outset(1, 1); - } - - return result; + return floatBounds.roundOut(); } void SkMatrixImageFilter::toString(SkString* str) const { |