Fix up SkMatrix::isFinite call
Review URL: https://codereview.chromium.org/1228473004
This commit is contained in:
parent
27c8eb8ffd
commit
07abbbec4b
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user