Index: src/gpu/GrStencilAndCoverPathRenderer.cpp |
diff --git a/src/gpu/GrStencilAndCoverPathRenderer.cpp b/src/gpu/GrStencilAndCoverPathRenderer.cpp |
index d8470f3c8c328befcceafd1224cbcda3fc956bcf..e7c4fc889924f4204fcb29226104cc97777fbc82 100644 |
--- a/src/gpu/GrStencilAndCoverPathRenderer.cpp |
+++ b/src/gpu/GrStencilAndCoverPathRenderer.cpp |
@@ -85,9 +85,8 @@ |
const SkPath& path, |
const SkStrokeRec& stroke) { |
SkASSERT(!path.isInverseFillType()); |
- SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(GrColor_WHITE)); |
SkAutoTUnref<GrPath> p(get_gr_path(fGpu, path, stroke)); |
- target->stencilPath(drawState, pp, p, convert_skpath_filltype(path.getFillType())); |
+ target->stencilPath(drawState, p, convert_skpath_filltype(path.getFillType())); |
} |
bool GrStencilAndCoverPathRenderer::onDrawPath(GrDrawTarget* target, |
@@ -118,8 +117,7 @@ |
drawState->setStencil(kInvertedStencilPass); |
// fake inverse with a stencil and cover |
- SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(GrColor_WHITE)); |
- target->stencilPath(drawState, pp, p, convert_skpath_filltype(path.getFillType())); |
+ target->stencilPath(drawState, p, convert_skpath_filltype(path.getFillType())); |
GrDrawState::AutoViewMatrixRestore avmr; |
SkRect bounds = SkRect::MakeLTRB(0, 0, |
@@ -147,8 +145,7 @@ |
0xffff); |
drawState->setStencil(kStencilPass); |
- SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(color)); |
- target->drawPath(drawState, pp, p, convert_skpath_filltype(path.getFillType())); |
+ target->drawPath(drawState, color, p, convert_skpath_filltype(path.getFillType())); |
} |
drawState->stencil()->setDisabled(); |