Lines Matching full:ellipse
231 * ellipse, specified as a 2D offset from center, and the reciprocals of the outer and inner radii,
367 * The output of this effect is a modulation of the input color and coverage for an ellipse,
1164 const SkRect& ellipse, const SkStrokeRec& stroke) {
1167 params.fCenter = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
1169 SkScalar ellipseXRadius = SkScalarHalf(ellipse.width());
1170 SkScalar ellipseYRadius = SkScalarHalf(ellipse.height());
1205 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
1232 fEllipses.emplace_back(Ellipse{color, params.fXRadius, params.fYRadius,
1298 for (const auto& ellipse : fEllipses) {
1299 GrColor color = ellipse.fColor;
1300 SkScalar xRadius = ellipse.fXRadius;
1301 SkScalar yRadius = ellipse.fYRadius;
1306 SkScalar xInnerRadRecip = SkScalarInvert(ellipse.fInnerXRadius);
1307 SkScalar yInnerRadRecip = SkScalarInvert(ellipse.fInnerYRadius);
1314 verts[0].fPos = SkPoint::Make(ellipse.fDevBounds.fLeft, ellipse.fDevBounds.fTop);
1320 verts[1].fPos = SkPoint::Make(ellipse.fDevBounds.fLeft, ellipse.fDevBounds.fBottom);
1326 verts[2].fPos = SkPoint::Make(ellipse.fDevBounds.fRight, ellipse.fDevBounds.fTop);
1332 verts[3].fPos = SkPoint::Make(ellipse.fDevBounds.fRight, ellipse.fDevBounds.fBottom);
1364 struct Ellipse {
1376 SkSTArray<1, Ellipse, true> fEllipses;
1400 const SkRect& ellipse, const SkStrokeRec& stroke) {
1402 params.fCenter = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
1403 params.fXRadius = SkScalarHalf(ellipse.width());
1404 params.fYRadius = SkScalarHalf(ellipse.height());
1431 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
1469 Ellipse{viewMatrix, color, params.fXRadius, params.fYRadius, params.fInnerXRadius,
1525 for (const auto& ellipse : fEllipses) {
1526 GrColor color = ellipse.fColor;
1527 SkScalar xRadius = ellipse.fXRadius;
1528 SkScalar yRadius = ellipse.fYRadius;
1530 const SkRect& bounds = ellipse.fBounds;
1533 SkScalar offsetDx = ellipse.fGeoDx / xRadius;
1534 SkScalar offsetDy = ellipse.fGeoDy / yRadius;
1536 SkScalar innerRatioX = xRadius / ellipse.fInnerXRadius;
1537 SkScalar innerRatioY = yRadius / ellipse.fInnerYRadius;
1587 struct Ellipse {
1601 SkSTArray<1, Ellipse, true> fEllipses;
2111 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
2356 // The way the effect interpolates the offset-to-ellipse/circle-center attribute only works on
2369 // otherwise we use the ellipse renderer
2408 // prefer the device space ellipse op for batchability
2479 SkRect ellipse = GrTest::TestSquare(random);
2480 return EllipseOp::Make(std::move(paint), viewMatrix, ellipse, GrTest::TestStrokeRec(random));
2485 SkRect ellipse = GrTest::TestSquare(random);
2486 return DIEllipseOp::Make(std::move(paint), viewMatrix, ellipse, GrTest::TestStrokeRec(random));