diff options
author | robertphillips <robertphillips@google.com> | 2015-06-26 08:07:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-26 08:07:39 -0700 |
commit | 157bcd0840b578060dbc3365daafffc6837da391 (patch) | |
tree | a090a6471b94dd50057085bcfa8f8e8d77fdd27a /src/effects/SkDisplacementMapEffect.cpp | |
parent | 0e72b7e2c68083333e90024cafd15d4084abd3a3 (diff) |
Fix SkTileImageFilter clipping/cropRect interaction issue
BUG=499499
Review URL: https://codereview.chromium.org/1210053003
Diffstat (limited to 'src/effects/SkDisplacementMapEffect.cpp')
-rw-r--r-- | src/effects/SkDisplacementMapEffect.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp index d7d92c82b9..0eac80ff8a 100644 --- a/src/effects/SkDisplacementMapEffect.cpp +++ b/src/effects/SkDisplacementMapEffect.cpp @@ -269,7 +269,7 @@ void SkDisplacementMapEffect::computeFastBounds(const SkRect& src, SkRect* dst) } bool SkDisplacementMapEffect::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, - SkIRect* dst) const { + SkIRect* dst) const { SkIRect bounds = src; SkVector scale = SkVector::Make(fScale, fScale); ctm.mapVectors(&scale, 1); @@ -285,6 +285,7 @@ bool SkDisplacementMapEffect::onFilterBounds(const SkIRect& src, const SkMatrix& #ifndef SK_IGNORE_TO_STRING void SkDisplacementMapEffect::toString(SkString* str) const { str->appendf("SkDisplacementMapEffect: ("); + this->getCropRect().toString(str); str->appendf("scale: %f ", fScale); str->appendf("displacement: ("); if (this->getDisplacementInput()) { |