diff options
author | Robert Phillips <robertphillips@google.com> | 2018-07-10 10:11:01 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-10 15:01:11 +0000 |
commit | c100d48e4241ecc7be0fd7fd79eae13e13f255c0 (patch) | |
tree | 9964c8f11311271d21748fd69ed04cc3f11542a7 /src/core/SkMatrix.cpp | |
parent | 45e27c8eed8f1673efebcb6cb2c03b8644c9c7a5 (diff) |
Expand testing of SkMatrix::decomposeScale
Bug: skia:7211
Change-Id: If03ad1d364b33e174d91010ca250cd6c2d2f67c2
Reviewed-on: https://skia-review.googlesource.com/140185
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/core/SkMatrix.cpp')
-rw-r--r-- | src/core/SkMatrix.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkMatrix.cpp b/src/core/SkMatrix.cpp index 3d50659e08..44e9a566b4 100644 --- a/src/core/SkMatrix.cpp +++ b/src/core/SkMatrix.cpp @@ -1638,6 +1638,7 @@ bool SkMatrix::decomposeScale(SkSize* scale, SkMatrix* remaining) const { } if (remaining) { *remaining = *this; + // As per skbug.com/7211, this should actually be preScale remaining->postScale(SkScalarInvert(sx), SkScalarInvert(sy)); } return true; |