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