Index: src/gpu/GrOvalRenderer.cpp |
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp |
index f368dc8d899c06e02b63128e3db3f9a0b4a1e784..dcce88955926bbfc19145ac89909bf25ccac6629 100644 |
--- a/src/gpu/GrOvalRenderer.cpp |
+++ b/src/gpu/GrOvalRenderer.cpp |
@@ -519,8 +519,8 @@ |
return; |
} |
- drawState->setVertexAttribs<gCircleVertexAttribs>(SK_ARRAY_COUNT(gCircleVertexAttribs), |
- sizeof(CircleVertex)); |
+ drawState->setVertexAttribs<gCircleVertexAttribs>(SK_ARRAY_COUNT(gCircleVertexAttribs)); |
+ SkASSERT(sizeof(CircleVertex) == drawState->getVertexSize()); |
GrDrawTarget::AutoReleaseGeometry geo(target, 4, 0); |
if (!geo.succeeded()) { |
@@ -680,8 +680,8 @@ |
return false; |
} |
- drawState->setVertexAttribs<gEllipseVertexAttribs>(SK_ARRAY_COUNT(gEllipseVertexAttribs), |
- sizeof(EllipseVertex)); |
+ drawState->setVertexAttribs<gEllipseVertexAttribs>(SK_ARRAY_COUNT(gEllipseVertexAttribs)); |
+ SkASSERT(sizeof(EllipseVertex) == drawState->getVertexSize()); |
GrDrawTarget::AutoReleaseGeometry geo(target, 4, 0); |
if (!geo.succeeded()) { |
@@ -799,8 +799,8 @@ |
SkScalar innerRatioX = SkScalarDiv(xRadius, innerXRadius); |
SkScalar innerRatioY = SkScalarDiv(yRadius, innerYRadius); |
- drawState->setVertexAttribs<gDIEllipseVertexAttribs>(SK_ARRAY_COUNT(gDIEllipseVertexAttribs), |
- sizeof(DIEllipseVertex)); |
+ drawState->setVertexAttribs<gDIEllipseVertexAttribs>(SK_ARRAY_COUNT(gDIEllipseVertexAttribs)); |
+ SkASSERT(sizeof(DIEllipseVertex) == drawState->getVertexSize()); |
GrDrawTarget::AutoReleaseGeometry geo(target, 4, 0); |
if (!geo.succeeded()) { |
@@ -1032,8 +1032,8 @@ |
// if the corners are circles, use the circle renderer |
if ((!hasStroke || scaledStroke.fX == scaledStroke.fY) && xRadius == yRadius) { |
- drawState->setVertexAttribs<gCircleVertexAttribs>(SK_ARRAY_COUNT(gCircleVertexAttribs), |
- sizeof(CircleVertex)); |
+ drawState->setVertexAttribs<gCircleVertexAttribs>(SK_ARRAY_COUNT(gCircleVertexAttribs)); |
+ SkASSERT(sizeof(CircleVertex) == drawState->getVertexSize()); |
GrDrawTarget::AutoReleaseGeometry geo(target, 16, 0); |
if (!geo.succeeded()) { |
@@ -1121,8 +1121,8 @@ |
// otherwise we use the ellipse renderer |
} else { |
- drawState->setVertexAttribs<gEllipseVertexAttribs>(SK_ARRAY_COUNT(gEllipseVertexAttribs), |
- sizeof(EllipseVertex)); |
+ drawState->setVertexAttribs<gEllipseVertexAttribs>(SK_ARRAY_COUNT(gEllipseVertexAttribs)); |
+ SkASSERT(sizeof(EllipseVertex) == drawState->getVertexSize()); |
SkScalar innerXRadius = 0.0f; |
SkScalar innerYRadius = 0.0f; |