aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2014-08-27 12:17:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-27 12:17:24 -0700
commitaf013bf8afc4c77ab8ff230f536e2ade973427fa (patch)
tree1b10644cf38a3fd9a5a4d2acdcd7c3252d41daa0 /src/gpu/effects
parentd72094d1c1062a9daa6fa92682ef29f02ba59335 (diff)
Make setVertexAttribs in GrDrawState take a stride parameter.
BUG=skia: R=bsalomon@google.com Author: egdaniel@google.com Review URL: https://codereview.chromium.org/511593004
Diffstat (limited to 'src/gpu/effects')
-rw-r--r--src/gpu/effects/GrDashingEffect.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/effects/GrDashingEffect.cpp b/src/gpu/effects/GrDashingEffect.cpp
index 4b2bafefdb..adee4aec96 100644
--- a/src/gpu/effects/GrDashingEffect.cpp
+++ b/src/gpu/effects/GrDashingEffect.cpp
@@ -350,7 +350,8 @@ bool GrDashingEffect::DrawDashLine(const SkPoint pts[2], const GrPaint& paint,
}
// Set up the vertex data for the line and start/end dashes
- drawState->setVertexAttribs<gDashLineVertexAttribs>(SK_ARRAY_COUNT(gDashLineVertexAttribs));
+ drawState->setVertexAttribs<gDashLineVertexAttribs>(SK_ARRAY_COUNT(gDashLineVertexAttribs),
+ sizeof(DashLineVertex));
int totalRectCnt = 0;