Fix up SkMatrix::isFinite call

Review URL: https://codereview.chromium.org/1228473004
This commit is contained in:
robertphillips 2015-07-06 12:15:34 -07:00 committed by Commit bot
parent 27c8eb8ffd
commit 07abbbec4b
2 changed files with 1 additions and 11 deletions

View File

@ -725,7 +725,7 @@ private:
/** Are all elements of the matrix finite?
*/
bool isFinite() const;
bool isFinite() const { return SkScalarsAreFinite(fMat, 9); }
static void ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp);

View File

@ -769,16 +769,6 @@ static double sk_inv_determinant(const float mat[9], int isPerspective) {
return 1.0 / det;
}
bool SkMatrix::isFinite() const {
for (int i = 0; i < 9; ++i) {
if (!SkScalarIsFinite(fMat[i])) {
return false;
}
}
return true;
}
void SkMatrix::SetAffineIdentity(SkScalar affine[6]) {
affine[kAScaleX] = 1;
affine[kASkewY] = 0;