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
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index b3c0119..a193848 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -329,6 +329,11 @@
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 @@
* @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 @@
/// 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,