diff options
Diffstat (limited to 'src/core/SkMatrix.cpp')
-rw-r--r-- | src/core/SkMatrix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkMatrix.cpp b/src/core/SkMatrix.cpp index 4cd27e42ee..8dee0cb229 100644 --- a/src/core/SkMatrix.cpp +++ b/src/core/SkMatrix.cpp @@ -848,7 +848,8 @@ bool SkMatrix::asAffine(SkScalar affine[6]) const { return true; } -bool SkMatrix::invert(SkMatrix* inv) const { +bool SkMatrix::invertNonIdentity(SkMatrix* inv) const { + SkASSERT(!this->isIdentity()); int isPersp = this->hasPerspective(); int shift; SkDetScalar scale = sk_inv_determinant(fMat, isPersp, &shift); |