Index: src/gpu/GrAADistanceFieldPathRenderer.cpp |
diff --git a/src/gpu/GrAADistanceFieldPathRenderer.cpp b/src/gpu/GrAADistanceFieldPathRenderer.cpp |
index 7a7c1e4379ae2307ec15b761914428de2e4d3cdc..913cda40faf0dd8bc4ef70487f162e2fbe95dacd 100755 |
--- a/src/gpu/GrAADistanceFieldPathRenderer.cpp |
+++ b/src/gpu/GrAADistanceFieldPathRenderer.cpp |
@@ -323,14 +323,14 @@ bool GrAADistanceFieldPathRenderer::internalDrawPath(GrDrawTarget* target, |
flags |= vm.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; |
GrTextureParams params(SkShader::kRepeat_TileMode, GrTextureParams::kBilerp_FilterMode); |
- if (flags != fEffectFlags || fCachedGeometryProcessor->getColor() != color) { |
+ if (flags != fEffectFlags || fCachedGeometryProcessor->color() != color) { |
fCachedGeometryProcessor.reset(GrDistanceFieldNoGammaTextureEffect::Create(color, |
texture, |
params, |
- flags)); |
+ flags, |
+ false)); |
fEffectFlags = flags; |
} |
- drawState->setGeometryProcessor(fCachedGeometryProcessor.get()); |
void* vertices = NULL; |
bool success = target->reserveVertexAndIndexSpace(4, |
@@ -372,7 +372,8 @@ bool GrAADistanceFieldPathRenderer::internalDrawPath(GrDrawTarget* target, |
vm.mapRect(&r); |
target->setIndexSourceToBuffer(fContext->getQuadIndexBuffer()); |
- target->drawIndexedInstances(drawState, kTriangles_GrPrimitiveType, 1, 4, 6, &r); |
+ target->drawIndexedInstances(drawState, fCachedGeometryProcessor.get(), |
+ kTriangles_GrPrimitiveType, 1, 4, 6, &r); |
target->resetVertexSource(); |
return true; |