Index: src/gpu/GrAAHairLinePathRenderer.cpp |
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp |
index d5ff40d9551d364d878c89327b29913c340295b2..066067b13afd6255dc975af61a7adf6b0a5ca2e9 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.cpp |
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp |
@@ -731,8 +731,7 @@ bool GrAAHairLinePathRenderer::createLineGeom(const SkPath& path, |
int vertCnt = kVertsPerLineSeg * lineCnt; |
- drawState->setVertexAttribs<gHairlineLineAttribs>(SK_ARRAY_COUNT(gHairlineLineAttribs)); |
- SkASSERT(sizeof(LineVertex) == drawState->getVertexSize()); |
+ drawState->setVertexAttribs<gHairlineLineAttribs>(SK_ARRAY_COUNT(gHairlineLineAttribs), sizeof(LineVertex)); |
bsalomon
2014/08/27 17:46:27
wrap?
egdaniel
2014/08/27 18:33:55
Done.
|
if (!arg->set(target, vertCnt, 0)) { |
return false; |
@@ -778,8 +777,8 @@ bool GrAAHairLinePathRenderer::createBezierGeom( |
int vertCnt = kVertsPerQuad * quadCnt + kVertsPerQuad * conicCnt; |
- target->drawState()->setVertexAttribs<gHairlineBezierAttribs>(SK_ARRAY_COUNT(gHairlineBezierAttribs)); |
- SkASSERT(sizeof(BezierVertex) == target->getDrawState().getVertexSize()); |
+ int vAttribCnt = SK_ARRAY_COUNT(gHairlineBezierAttribs); |
+ target->drawState()->setVertexAttribs<gHairlineBezierAttribs>(vAttribCnt, sizeof(BezierVertex)); |
if (!arg->set(target, vertCnt, 0)) { |
return false; |