diff options
author | 2012-11-07 16:17:24 +0000 | |
---|---|---|
committer | 2012-11-07 16:17:24 +0000 | |
commit | 7b7cdd147f5528865238e5ed98c79e6d319fde9b (patch) | |
tree | 8d42e48f75699dbeb53f7ed7a6a4f3f820abe988 /include/core/SkMatrix.h | |
parent | 8f0a7b8e7334187a5d7d5ab7fde5a3c3009555f5 (diff) |
Some improvements to reduce the number of pixels touched in generating alpha clip masks
Review URL: https://codereview.appspot.com/6828043
git-svn-id: http://skia.googlecode.com/svn/trunk@6329 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkMatrix.h')
-rw-r--r-- | include/core/SkMatrix.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h index 980bcaa27a..2d3786cf31 100644 --- a/include/core/SkMatrix.h +++ b/include/core/SkMatrix.h @@ -173,6 +173,8 @@ public: /** Set the matrix to translate by (dx, dy). */ void setTranslate(SkScalar dx, SkScalar dy); + void setTranslate(const SkVector& v) { this->setTranslate(v.fX, v.fY); } + /** Set the matrix to scale by sx and sy, with a pivot point at (px, py). The pivot point is the coordinate that should remain unchanged by the specified transformation. |