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

Unified Diff: include/core/SkMatrix.h

Issue 293693002: Try out SkMatrix::Concat. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move to header Created 6 years, 7 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/record/SkRecordDraw.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 8394c38752c20998c9f3457c8b21860026a61341..e225336bd845218eea5c91feb4492a929df8aab1 100644
--- a/include/core/SkMatrix.h
+++ b/include/core/SkMatrix.h
@@ -590,6 +590,15 @@ public:
static const SkMatrix& InvalidMatrix();
/**
+ * Return the concatenation of two matrices, a * b.
+ */
+ static SkMatrix Concat(const SkMatrix& a, const SkMatrix& b) {
+ SkMatrix result;
+ result.setConcat(a, b);
+ return result;
+ }
+
+ /**
* Testing routine; the matrix's type cache should never need to be
* manually invalidated during normal use.
*/
« no previous file with comments | « no previous file | src/record/SkRecordDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698