aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-10 18:24:37 +0000
committerGravatar jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-10 18:24:37 +0000
commit6cc8d4470df5fb2e8e4574bbfde1ebf82a3b7aef (patch)
tree47a1fa2241ef508c1cadc8c2e7f673fce0b35ee0
parent115fbf66a97cf9cb5f043804c8011f80c1da88af (diff)
Fix for ovals failing on Xoom.
The fallback path for ellipses when we don't have GLSL derivative instructions was only setting one attribute in the effect stage, but we use two attributes. R=robertphillips@google.com Review URL: https://codereview.chromium.org/23514047 git-svn-id: http://skia.googlecode.com/svn/trunk@11184 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/gpu/GrOvalRenderer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp
index 667efc4a08..946cdc06ae 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);