diff options
author | 2011-07-18 19:31:59 +0000 | |
---|---|---|
committer | 2011-07-18 19:31:59 +0000 | |
commit | 5c63865b529eb5714e41419dfa23c70d26ff6e4e (patch) | |
tree | 5d0d8d821be48140af489ab90865b67884d755a4 /include/core | |
parent | b88cfe58e117ffe781e4ce2cba73cc4f7a795de7 (diff) |
Use texture cache for writePixels temp
Review URL: http://codereview.appspot.com/4757050/
git-svn-id: http://skia.googlecode.com/svn/trunk@1887 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkMatrix.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h index a8c50fc4d5..b5864eb2b9 100644 --- a/include/core/SkMatrix.h +++ b/include/core/SkMatrix.h @@ -176,6 +176,10 @@ public: /** Set the matrix to scale by sx and sy. */ void setScale(SkScalar sx, SkScalar sy); + /** Set the matrix to scale by 1/divx and 1/divy. Returns false and doesn't + touch the matrix if either divx or divy is zero. + */ + bool setIDiv(int divx, int divy); /** Set the matrix to rotate by the specified number of degrees, with a pivot point at (px, py). The pivot point is the coordinate that should remain unchanged by the specified transformation. |