diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-08 14:48:36 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-08 14:48:36 +0000 |
commit | 0f11e1ab5b6e53f6176dde2dbb25a8e3ae34858f (patch) | |
tree | e1ede971e62f13815c6afa4f7e233b29cabe69e7 /include/gpu | |
parent | a5b7cc00b9e95c4c6c02b5bd26aba5e6401f7fd7 (diff) |
Remove translate param from GrContext::drawPath (and subsequent calls).
Review URL: https://codereview.appspot.com/6615062
git-svn-id: http://skia.googlecode.com/svn/trunk@5852 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrContext.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index b3c0119118..a193848f81 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -329,6 +329,11 @@ public: void setMatrix(const GrMatrix& m); /** + * Sets the current transformation matrix to identity. + */ + void setIdentityMatrix(); + + /** * Concats the current matrix. The passed matrix is applied before the * current matrix. * @param m the matrix to concat. @@ -414,8 +419,7 @@ public: * @param translate optional additional translation applied to the * path. */ - void drawPath(const GrPaint& paint, const SkPath& path, GrPathFill fill, - const GrPoint* translate = NULL); + void drawPath(const GrPaint& paint, const SkPath& path, GrPathFill fill); /** * Draws vertices with a paint. @@ -845,8 +849,7 @@ private: /// draw state is left unmodified. GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw); - void internalDrawPath(const GrPaint& paint, const SkPath& path, - GrPathFill fill, const GrPoint* translate); + void internalDrawPath(const GrPaint& paint, const SkPath& path, GrPathFill fill); GrTexture* createResizedTexture(const GrTextureDesc& desc, const GrCacheData& cacheData, |