Removed SoftwarePathRenderer from GrContext's path renderer chain
http://codereview.appspot.com/6221065/
git-svn-id: http://skia.googlecode.com/svn/trunk@4036 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index d930c06..c1a5bd1 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -393,9 +393,6 @@
}
}
-}
-
-namespace {
////////////////////////////////////////////////////////////////////////////////
bool draw_path(GrContext* context,
GrGpu* gpu,
@@ -403,7 +400,7 @@
GrPathFill fill,
bool doAA) {
- GrPathRenderer* pr = context->getPathRenderer(path, fill, gpu, doAA);
+ GrPathRenderer* pr = context->getPathRenderer(path, fill, gpu, doAA, true);
if (NULL == pr) {
return false;
}
@@ -411,7 +408,8 @@
pr->drawPath(path, fill, NULL, gpu, 0, doAA);
return true;
}
-};
+
+}
////////////////////////////////////////////////////////////////////////////////
bool GrClipMaskManager::drawClipShape(GrGpu* gpu,
@@ -796,7 +794,8 @@
fill = GrNonInvertedFill(fill);
clipPath = &clipCopy.getPath(c);
pr = this->getContext()->getPathRenderer(*clipPath,
- fill, gpu, false);
+ fill, gpu, false,
+ true);
if (NULL == pr) {
fClipMaskInStencil = false;
gpu->setClip(clipCopy); // restore to the original