Lines Matching refs:verts
681 CircleVertex* verts = reinterpret_cast<CircleVertex*>(helper.init(target, vertexStride,
683 if (!verts) {
698 verts[0].fPos = SkPoint::Make(bounds.fLeft, bounds.fTop);
699 verts[0].fColor = color;
700 verts[0].fOffset = SkPoint::Make(-1, -1);
701 verts[0].fOuterRadius = outerRadius;
702 verts[0].fInnerRadius = innerRadius;
704 verts[1].fPos = SkPoint::Make(bounds.fLeft, bounds.fBottom);
705 verts[1].fColor = color;
706 verts[1].fOffset = SkPoint::Make(-1, 1);
707 verts[1].fOuterRadius = outerRadius;
708 verts[1].fInnerRadius = innerRadius;
710 verts[2].fPos = SkPoint::Make(bounds.fRight, bounds.fBottom);
711 verts[2].fColor = color;
712 verts[2].fOffset = SkPoint::Make(1, 1);
713 verts[2].fOuterRadius = outerRadius;
714 verts[2].fInnerRadius = innerRadius;
716 verts[3].fPos = SkPoint::Make(bounds.fRight, bounds.fTop);
717 verts[3].fColor = color;
718 verts[3].fOffset = SkPoint::Make(1, -1);
719 verts[3].fOuterRadius = outerRadius;
720 verts[3].fInnerRadius = innerRadius;
722 verts += kVerticesPerQuad;
807 // Second, the outer radius is used to compute the verts of the bounding box that is rendered
894 EllipseVertex* verts = reinterpret_cast<EllipseVertex*>(
896 if (!verts) {
916 verts[0].fPos = SkPoint::Make(bounds.fLeft, bounds.fTop);
917 verts[0].fColor = color;
918 verts[0].fOffset = SkPoint::Make(-xRadius, -yRadius);
919 verts[0].fOuterRadii = SkPoint::Make(xRadRecip, yRadRecip);
920 verts[0].fInnerRadii = SkPoint::Make(xInnerRadRecip, yInnerRadRecip);
922 verts[1].fPos = SkPoint::Make(bounds.fLeft, bounds.fBottom);
923 verts[1].fColor = color;
924 verts[1].fOffset = SkPoint::Make(-xRadius, yRadius);
925 verts[1].fOuterRadii = SkPoint::Make(xRadRecip, yRadRecip);
926 verts[1].fInnerRadii = SkPoint::Make(xInnerRadRecip, yInnerRadRecip);
928 verts[2].fPos = SkPoint::Make(bounds.fRight, bounds.fBottom);
929 verts[2].fColor = color;
930 verts[2].fOffset = SkPoint::Make(xRadius, yRadius);
931 verts[2].fOuterRadii = SkPoint::Make(xRadRecip, yRadRecip);
932 verts[2].fInnerRadii = SkPoint::Make(xInnerRadRecip, yInnerRadRecip);
934 verts[3].fPos = SkPoint::Make(bounds.fRight, bounds.fTop);
935 verts[3].fColor = color;
936 verts[3].fOffset = SkPoint::Make(xRadius, -yRadius);
937 verts[3].fOuterRadii = SkPoint::Make(xRadRecip, yRadRecip);
938 verts[3].fInnerRadii = SkPoint::Make(xInnerRadRecip, yInnerRadRecip);
940 verts += kVerticesPerQuad;
1144 DIEllipseVertex* verts = reinterpret_cast<DIEllipseVertex*>(
1146 if (!verts) {
1166 verts[0].fPos = SkPoint::Make(bounds.fLeft, bounds.fTop);
1167 verts[0].fColor = color;
1168 verts[0].fOuterOffset = SkPoint::Make(-1.0f - offsetDx, -1.0f - offsetDy);
1169 verts[0].fInnerOffset = SkPoint::Make(-innerRatioX - offsetDx, -innerRatioY - offsetDy);
1171 verts[1].fPos = SkPoint::Make(bounds.fLeft, bounds.fBottom);
1172 verts[1].fColor = color;
1173 verts[1].fOuterOffset = SkPoint::Make(-1.0f - offsetDx, 1.0f + offsetDy);
1174 verts[1].fInnerOffset = SkPoint::Make(-innerRatioX - offsetDx, innerRatioY + offsetDy);
1176 verts[2].fPos = SkPoint::Make(bounds.fRight, bounds.fBottom);
1177 verts[2].fColor = color;
1178 verts[2].fOuterOffset = SkPoint::Make(1.0f + offsetDx, 1.0f + offsetDy);
1179 verts[2].fInnerOffset = SkPoint::Make(innerRatioX + offsetDx, innerRatioY + offsetDy);
1181 verts[3].fPos = SkPoint::Make(bounds.fRight, bounds.fTop);
1182 verts[3].fColor = color;
1183 verts[3].fOuterOffset = SkPoint::Make(1.0f + offsetDx, -1.0f - offsetDy);
1184 verts[3].fInnerOffset = SkPoint::Make(innerRatioX + offsetDx, -innerRatioY - offsetDy);
1186 verts += kVerticesPerQuad;
1437 CircleVertex* verts = reinterpret_cast<CircleVertex*>(helper.init(target,
1440 if (!verts || !indexBuffer) {
1464 verts->fPos = SkPoint::Make(bounds.fLeft, yCoords[i]);
1465 verts->fColor = color;
1466 verts->fOffset = SkPoint::Make(-1, yOuterRadii[i]);
1467 verts->fOuterRadius = outerRadius;
1468 verts->fInnerRadius = innerRadius;
1469 verts++;
1471 verts->fPos = SkPoint::Make(bounds.fLeft + outerRadius, yCoords[i]);
1472 verts->fColor = color;
1473 verts->fOffset = SkPoint::Make(0, yOuterRadii[i]);
1474 verts->fOuterRadius = outerRadius;
1475 verts->fInnerRadius = innerRadius;
1476 verts++;
1478 verts->fPos = SkPoint::Make(bounds.fRight - outerRadius, yCoords[i]);
1479 verts->fColor = color;
1480 verts->fOffset = SkPoint::Make(0, yOuterRadii[i]);
1481 verts->fOuterRadius = outerRadius;
1482 verts->fInnerRadius = innerRadius;
1483 verts++;
1485 verts->fPos = SkPoint::Make(bounds.fRight, yCoords[i]);
1486 verts->fColor = color;
1487 verts->fOffset = SkPoint::Make(1, yOuterRadii[i]);
1488 verts->fOuterRadius = outerRadius;
1489 verts->fInnerRadius = innerRadius;
1490 verts++;
1616 EllipseVertex* verts = reinterpret_cast<EllipseVertex*>(
1619 if (!verts || !indexBuffer) {
1655 verts->fPos = SkPoint::Make(bounds.fLeft, yCoords[i]);
1656 verts->fColor = color;
1657 verts->fOffset = SkPoint::Make(xOuterRadius, yOuterOffsets[i]);
1658 verts->fOuterRadii = SkPoint::Make(xRadRecip, yRadRecip);
1659 verts->fInnerRadii = SkPoint::Make(xInnerRadRecip, yInnerRadRecip);
1660 verts++;
1662 verts->fPos = SkPoint::Make(bounds.fLeft + xOuterRadius, yCoords[i]);
1663 verts->fColor = color;
1664 verts->fOffset = SkPoint::Make(SK_ScalarNearlyZero, yOuterOffsets[i]);
1665 verts->fOuterRadii = SkPoint::Make(xRadRecip, yRadRecip);
1666 verts->fInnerRadii = SkPoint::Make(xInnerRadRecip, yInnerRadRecip);
1667 verts++;
1669 verts->fPos = SkPoint::Make(bounds.fRight - xOuterRadius, yCoords[i]);
1670 verts->fColor = color;
1671 verts->fOffset = SkPoint::Make(SK_ScalarNearlyZero, yOuterOffsets[i]);
1672 verts->fOuterRadii = SkPoint::Make(xRadRecip, yRadRecip);
1673 verts->fInnerRadii = SkPoint::Make(xInnerRadRecip, yInnerRadRecip);
1674 verts++;
1676 verts->fPos = SkPoint::Make(bounds.fRight, yCoords[i]);
1677 verts->fColor = color;
1678 verts->fOffset = SkPoint::Make(xOuterRadius, yOuterOffsets[i]);
1679 verts->fOuterRadii = SkPoint::Make(xRadRecip, yRadRecip);
1680 verts->fInnerRadii = SkPoint::Make(xInnerRadRecip, yInnerRadRecip);
1681 verts++;
1814 // Second, the outer radius is used to compute the verts of the bounding box that is