From 5c63865b529eb5714e41419dfa23c70d26ff6e4e Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Mon, 18 Jul 2011 19:31:59 +0000 Subject: 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 --- include/core/SkMatrix.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/core/SkMatrix.h') 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. -- cgit v1.2.3