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/src/gpu/GrStencilAndCoverPathRenderer.cpp b/src/gpu/GrStencilAndCoverPathRenderer.cpp
index 3042cec..5a6b9db 100644
--- a/src/gpu/GrStencilAndCoverPathRenderer.cpp
+++ b/src/gpu/GrStencilAndCoverPathRenderer.cpp
@@ -57,9 +57,8 @@
 
 bool GrStencilAndCoverPathRenderer::onDrawPath(const SkPath& path,
                                                GrPathFill fill,
-                                               const GrVec* translate,
                                                GrDrawTarget* target,
-                                               bool antiAlias){
+                                               bool antiAlias) {
     GrAssert(!antiAlias);
     GrAssert(kHairLine_GrPathFill != fill);
 
@@ -68,10 +67,7 @@
 
     SkAutoTUnref<GrPath> p(fGpu->createPath(path));
     GrDrawState::AutoViewMatrixRestore avmr;
-    if (translate) {
-        avmr.set(drawState);
-        drawState->viewMatrix()->postTranslate(translate->fX, translate->fY);
-    }
+
     GrPathFill nonInvertedFill = GrNonInvertedFill(fill);
     target->stencilPath(p, nonInvertedFill);
 
@@ -111,13 +107,11 @@
             // theoretically could set bloat = 0, instead leave it because of matrix inversion
             // precision.
         } else {
+            avmr.set(drawState);
             if (!drawState->preConcatSamplerMatricesWithInverse(drawState->getViewMatrix())) {
                 GrPrintf("Could not invert matrix.\n");
                 return false;
             }
-            if (avmr.isSet()) {
-                avmr.set(drawState);
-            }
             drawState->viewMatrix()->reset();
             bloat = 0;
         }