Index: src/gpu/GrOvalRenderer.cpp |
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp |
index 667efc4a083a5651a2374cdf877673f7747ddf4b..946cdc06ae0ba518b8259c083fe9d32ee839fc2a 100644 |
--- a/src/gpu/GrOvalRenderer.cpp |
+++ b/src/gpu/GrOvalRenderer.cpp |
@@ -691,7 +691,8 @@ bool GrOvalRenderer::drawEllipse(GrDrawTarget* target, |
innerXRadius > 0 && innerYRadius > 0); |
static const int kEllipseCenterAttrIndex = 1; |
- drawState->addCoverageEffect(effect, kEllipseCenterAttrIndex)->unref(); |
+ static const int kEllipseEdgeAttrIndex = 2; |
+ drawState->addCoverageEffect(effect, kEllipseCenterAttrIndex, kEllipseEdgeAttrIndex)->unref(); |
// Compute the reciprocals of the radii here to save time in the shader |
SkScalar xRadRecip = SkScalarInvert(xRadius); |