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

Unified Diff: include/core/SkMatrix.h

Issue 1188433011: Added check for ill-conditioned invert (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update Created 5 years, 6 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 | include/core/SkScalar.h » ('j') | src/core/SkMatrix.cpp » ('J')
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 0252bc7101c423217093f1a7f281af71b792dfb5..9a75b3db1f2e62d9f93a5c96681ffdd3a032d0b8 100644
--- a/include/core/SkMatrix.h
+++ b/include/core/SkMatrix.h
@@ -719,6 +719,12 @@ private:
SkScalar fMat[9];
mutable uint32_t fTypeMask;
+ /** Are all elements of the matrix finite?
+ */
+ bool isFinite() const;
+
+ static void ComputeInv(const SkScalar* src, SkScalar* dst, SkScalar scale, bool isPersp);
reed1 2015/06/17 19:27:56 nit: - skia tries to use [] for parameters that ar
robertphillips 2015/06/17 19:44:46 Done.
+
void setScaleTranslate(SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty) {
fMat[kMScaleX] = sx;
fMat[kMSkewX] = 0;
« no previous file with comments | « no previous file | include/core/SkScalar.h » ('j') | src/core/SkMatrix.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698