Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: include/core/SkMatrix.h

Issue 1228473004: Fix up SkMatrix::isFinite call (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkMatrix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkMatrix.h
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h
index 79ee001514340bc8f5e50f3e78ca792ff2fe8d28..1626750208363f7da95dd71dee7f84860e932404 100644
--- a/include/core/SkMatrix.h
+++ b/include/core/SkMatrix.h
@@ -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);
« no previous file with comments | « no previous file | src/core/SkMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698