Index: src/gpu/GrAAConvexPathRenderer.cpp |
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp |
index c260382dbb394690246e7be17b5498c2e2e16b5d..b29c7c80a346ecc1286f70a036e4bfc9ad1025e8 100644 |
--- a/src/gpu/GrAAConvexPathRenderer.cpp |
+++ b/src/gpu/GrAAConvexPathRenderer.cpp |
@@ -674,7 +674,7 @@ |
// 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), sizeof(QuadVertex)); |
+ drawState->setVertexAttribs<gPathAttribs>(SK_ARRAY_COUNT(gPathAttribs)); |
static const int kEdgeAttrIndex = 1; |
GrEffect* quadEffect = QuadEdgeEffect::Create(); |
@@ -684,6 +684,7 @@ |
if (!arg.succeeded()) { |
return false; |
} |
+ SkASSERT(sizeof(QuadVertex) == drawState->getVertexSize()); |
verts = reinterpret_cast<QuadVertex*>(arg.vertices()); |
idxs = reinterpret_cast<uint16_t*>(arg.indices()); |