Index: src/gpu/GrAAHairLinePathRenderer.cpp |
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp |
index 2114720f34fd86cad72cca3aa5a09e2900234a2b..d5ff40d9551d364d878c89327b29913c340295b2 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.cpp |
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp |
@@ -731,8 +731,8 @@ |
int vertCnt = kVertsPerLineSeg * lineCnt; |
- drawState->setVertexAttribs<gHairlineLineAttribs>(SK_ARRAY_COUNT(gHairlineLineAttribs), |
- sizeof(LineVertex)); |
+ drawState->setVertexAttribs<gHairlineLineAttribs>(SK_ARRAY_COUNT(gHairlineLineAttribs)); |
+ SkASSERT(sizeof(LineVertex) == drawState->getVertexSize()); |
if (!arg->set(target, vertCnt, 0)) { |
return false; |
@@ -778,8 +778,8 @@ |
int vertCnt = kVertsPerQuad * quadCnt + kVertsPerQuad * conicCnt; |
- int vAttribCnt = SK_ARRAY_COUNT(gHairlineBezierAttribs); |
- target->drawState()->setVertexAttribs<gHairlineBezierAttribs>(vAttribCnt, sizeof(BezierVertex)); |
+ target->drawState()->setVertexAttribs<gHairlineBezierAttribs>(SK_ARRAY_COUNT(gHairlineBezierAttribs)); |
+ SkASSERT(sizeof(BezierVertex) == target->getDrawState().getVertexSize()); |
if (!arg->set(target, vertCnt, 0)) { |
return false; |