Index: src/gpu/GrAAHairLinePathRenderer.cpp |
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp |
index 2114720f34fd86cad72cca3aa5a09e2900234a2b..9986ac87f02fffb9c918359d0f19a97b69158ac8 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.cpp |
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp |
@@ -1002,7 +1002,7 @@ bool GrAAHairLinePathRenderer::onDrawPath(const SkPath& path, |
SkASSERT(NULL != hairQuadEffect); |
GrDrawState::AutoRestoreEffects are(drawState); |
target->setIndexSourceToBuffer(fQuadsIndexBuffer); |
- drawState->addCoverageEffect(hairQuadEffect, kEdgeAttrIndex)->unref(); |
+ drawState->setGeometryProcessor(hairQuadEffect, kEdgeAttrIndex)->unref(); |
int quads = 0; |
while (quads < quadCnt) { |
int n = SkTMin(quadCnt - quads, kNumQuadsInIdxBuffer); |
@@ -1021,7 +1021,7 @@ bool GrAAHairLinePathRenderer::onDrawPath(const SkPath& path, |
GrEffect* hairConicEffect = GrConicEffect::Create(kHairlineAA_GrEffectEdgeType, |
*target->caps()); |
SkASSERT(NULL != hairConicEffect); |
- drawState->addCoverageEffect(hairConicEffect, 1, 2)->unref(); |
+ drawState->setGeometryProcessor(hairConicEffect, 1, 2)->unref(); |
int conics = 0; |
while (conics < conicCnt) { |
int n = SkTMin(conicCnt - conics, kNumQuadsInIdxBuffer); |