aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkMatrix.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-10-18 16:00:31 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-18 20:21:58 +0000
commiteac03014e564bcbbd188034e4deba11390c917d0 (patch)
treec48085963cd8c8e9e62e5cd348b0256553454347 /src/core/SkMatrix.cpp
parent9cbd4d5b74edac80cbebe96380b64b2d0fb65bbd (diff)
fix mapRect to always return the same as rectStaysRect
Bug: skia: Change-Id: I7c19703613b3173942a12153b30e9951f35c0008 Reviewed-on: https://skia-review.googlesource.com/61820 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkMatrix.cpp')
-rw-r--r--src/core/SkMatrix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkMatrix.cpp b/src/core/SkMatrix.cpp
index 89bde4b42c..d02524068e 100644
--- a/src/core/SkMatrix.cpp
+++ b/src/core/SkMatrix.cpp
@@ -1128,7 +1128,7 @@ bool SkMatrix::mapRect(SkRect* dst, const SkRect& src) const {
src.toQuad(quad);
this->mapPoints(quad, quad, 4);
dst->set(quad, 4);
- return false;
+ return this->rectStaysRect(); // might still return true if rotated by 90, etc.
}
}