diff options
Diffstat (limited to 'src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp')
-rw-r--r-- | src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp index b6b70779ff..5659099c84 100644 --- a/src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp +++ b/src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp @@ -249,10 +249,12 @@ private: return; } - size_t vertexStride = fHelper.compatibleWithAlphaAsCoverage() - ? sizeof(GrDefaultGeoProcFactory::PositionColorAttr) - : sizeof(GrDefaultGeoProcFactory::PositionColorCoverageAttr); - SkASSERT(vertexStride == gp->debugOnly_vertexStride()); + size_t vertexStride = gp->getVertexStride(); + + SkASSERT(fHelper.compatibleWithAlphaAsCoverage() + ? vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorAttr) + : vertexStride == + sizeof(GrDefaultGeoProcFactory::PositionColorCoverageAttr)); int instanceCount = fPaths.count(); |