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

Unified Diff: include/core/SkMatrix.h

Issue 13521006: First pass at Rect Effect (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: fixed overlength lines Created 7 years, 8 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
Index: include/core/SkMatrix.h
===================================================================
--- include/core/SkMatrix.h (revision 8539)
+++ include/core/SkMatrix.h (working copy)
@@ -90,6 +90,12 @@
*/
bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
+ /** Returns true if the matrix contains only translation, rotation or scale
+ (non-uniform scale is allowed).
+ Returns false if other transformation types are included or is degenerate
+ */
+ bool notSkewOrPersp(SkScalar tol = SK_ScalarNearlyZero) const;
bsalomon 2013/04/08 15:48:39 isOrthogonal()?
robertphillips 2013/04/08 19:33:20 Done - although I'm not sure is 'isOrthogonal' is
+
enum {
kMScaleX,
kMSkewX,
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrAARectRenderer.h » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698