Index: src/gpu/GrDefaultPathRenderer.cpp |
diff --git a/src/gpu/GrDefaultPathRenderer.cpp b/src/gpu/GrDefaultPathRenderer.cpp |
index 24d3c456cb34edaa5edf03a4e50027194ebacf1e..d8f723eaefdc0fc33b0c1e5cef664fb5acacb14f 100644 |
--- a/src/gpu/GrDefaultPathRenderer.cpp |
+++ b/src/gpu/GrDefaultPathRenderer.cpp |
@@ -498,12 +498,14 @@ bool GrDefaultPathRenderer::internalDrawPath(GrDrawTarget* target, |
drawState->enableState(GrDrawState::kNoColorWrites_StateBit); |
} |
GrDrawState::AutoRestoreEffects are(drawState); |
- drawState->setGeometryProcessor( |
+ SkAutoTUnref<const GrGeometryProcessor> gp( |
GrDefaultGeoProcFactory::Create(color, |
GrDefaultGeoProcFactory::kPosition_GPType, |
- newCoverage))->unref(); |
+ false, |
+ newCoverage)); |
if (indexCnt) { |
target->drawIndexed(drawState, |
+ gp, |
primType, |
0, |
0, |
@@ -511,7 +513,7 @@ bool GrDefaultPathRenderer::internalDrawPath(GrDrawTarget* target, |
indexCnt, |
&devBounds); |
} else { |
- target->drawNonIndexed(drawState, primType, 0, vertexCnt, &devBounds); |
+ target->drawNonIndexed(drawState, gp, primType, 0, vertexCnt, &devBounds); |
} |
} |
} |