Don't use GrDrawTarget's AA state bit to convey whether to do custom-aa

Review URL: http://codereview.appspot.com/5314061/



git-svn-id: http://skia.googlecode.com/svn/trunk@2539 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrTesselatedPathRenderer.cpp b/src/gpu/GrTesselatedPathRenderer.cpp
index 3c4bb01..5c5a50e 100644
--- a/src/gpu/GrTesselatedPathRenderer.cpp
+++ b/src/gpu/GrTesselatedPathRenderer.cpp
@@ -457,7 +457,7 @@
     }
 
     if (subpathCnt == 1 && !inverted && fPath->isConvex()) {
-        if (fTarget->isAntialiasState()) {
+        if (fAntiAlias) {
             GrEdgeArray edges;
             GrMatrix inverse, matrix = fTarget->getViewMatrix();
             fTarget->getViewInverse(&inverse);
@@ -492,7 +492,7 @@
         return;
     }
 
-    if (fTarget->isAntialiasState()) {
+    if (fAntiAlias) {
         // Run the tesselator once to get the boundaries.
         GrBoundaryTess btess(count, fill_type_to_glu_winding_rule(fFill));
         btess.addVertices(base, subpathVertCount, subpathCnt);
@@ -590,9 +590,10 @@
     }
 }
 
-bool GrTesselatedPathRenderer::canDrawPath(const GrDrawTarget* target,
+bool GrTesselatedPathRenderer::canDrawPath(const GrDrawTarget::Caps& caps,
                                            const SkPath& path,
-                                           GrPathFill fill) const {
+                                           GrPathFill fill,
+                                           bool antiAlias) const {
     return kHairLine_PathFill != fill;
 }
 
@@ -600,8 +601,3 @@
     GrAlwaysAssert(!"multipass stencil should not be needed");
 }
 
-bool GrTesselatedPathRenderer::supportsAA(const GrDrawTarget* target,
-                                          const SkPath& path,
-                                          GrPathFill fill) const {
-    return true;
-}