Index: src/gpu/GrAAConvexPathRenderer.cpp |
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp |
index b29c7c80a346ecc1286f70a036e4bfc9ad1025e8..c260382dbb394690246e7be17b5498c2e2e16b5d 100644 |
--- a/src/gpu/GrAAConvexPathRenderer.cpp |
+++ b/src/gpu/GrAAConvexPathRenderer.cpp |
@@ -674,7 +674,7 @@ bool GrAAConvexPathRenderer::onDrawPath(const SkPath& origPath, |
// Our computed verts should all be within one pixel of the segment control points. |
devBounds.outset(SK_Scalar1, SK_Scalar1); |
- drawState->setVertexAttribs<gPathAttribs>(SK_ARRAY_COUNT(gPathAttribs)); |
+ drawState->setVertexAttribs<gPathAttribs>(SK_ARRAY_COUNT(gPathAttribs), sizeof(QuadVertex)); |
static const int kEdgeAttrIndex = 1; |
GrEffect* quadEffect = QuadEdgeEffect::Create(); |
@@ -684,7 +684,6 @@ bool GrAAConvexPathRenderer::onDrawPath(const SkPath& origPath, |
if (!arg.succeeded()) { |
return false; |
} |
- SkASSERT(sizeof(QuadVertex) == drawState->getVertexSize()); |
verts = reinterpret_cast<QuadVertex*>(arg.vertices()); |
idxs = reinterpret_cast<uint16_t*>(arg.indices()); |