Home | History | Annotate | Download | only in ops

Lines Matching full:ellipse

505  * ellipse, specified as a 2D offset from center, and the reciprocals of the outer and inner radii,
641 * The output of this effect is a modulation of the input color and coverage for an ellipse,
1790 const SkRect& ellipse, const SkStrokeRec& stroke) {
1793 params.fCenter = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
1795 SkScalar ellipseXRadius = SkScalarHalf(ellipse.width());
1796 SkScalar ellipseYRadius = SkScalarHalf(ellipse.height());
1831 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
1858 fEllipses.emplace_back(Ellipse{color, params.fXRadius, params.fYRadius,
1924 for (const auto& ellipse : fEllipses) {
1925 GrColor color = ellipse.fColor;
1926 SkScalar xRadius = ellipse.fXRadius;
1927 SkScalar yRadius = ellipse.fYRadius;
1932 SkScalar xInnerRadRecip = SkScalarInvert(ellipse.fInnerXRadius);
1933 SkScalar yInnerRadRecip = SkScalarInvert(ellipse.fInnerYRadius);
1940 verts[0].fPos = SkPoint::Make(ellipse.fDevBounds.fLeft, ellipse.fDevBounds.fTop);
1946 verts[1].fPos = SkPoint::Make(ellipse.fDevBounds.fLeft, ellipse.fDevBounds.fBottom);
1952 verts[2].fPos = SkPoint::Make(ellipse.fDevBounds.fRight, ellipse.fDevBounds.fTop);
1958 verts[3].fPos = SkPoint::Make(ellipse.fDevBounds.fRight, ellipse.fDevBounds.fBottom);
1990 struct Ellipse {
2002 SkSTArray<1, Ellipse, true> fEllipses;
2026 const SkRect& ellipse, const SkStrokeRec& stroke) {
2028 params.fCenter = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
2029 params.fXRadius = SkScalarHalf(ellipse.width());
2030 params.fYRadius = SkScalarHalf(ellipse.height());
2057 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
2095 Ellipse{viewMatrix, color, params.fXRadius, params.fYRadius, params.fInnerXRadius,
2151 for (const auto& ellipse : fEllipses) {
2152 GrColor color = ellipse.fColor;
2153 SkScalar xRadius = ellipse.fXRadius;
2154 SkScalar yRadius = ellipse.fYRadius;
2156 const SkRect& bounds = ellipse.fBounds;
2159 SkScalar offsetDx = ellipse.fGeoDx / xRadius;
2160 SkScalar offsetDy = ellipse.fGeoDy / yRadius;
2162 SkScalar innerRatioX = xRadius / ellipse.fInnerXRadius;
2163 SkScalar innerRatioY = yRadius / ellipse.fInnerYRadius;
2213 struct Ellipse {
2227 SkSTArray<1, Ellipse, true> fEllipses;
2737 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
2982 // The way the effect interpolates the offset-to-ellipse/circle-center attribute only works on
2995 // otherwise we use the ellipse renderer
3065 // prefer the device space ellipse op for batchability
3157 SkRect ellipse = GrTest::TestSquare(random);
3158 return EllipseOp::Make(std::move(paint), viewMatrix, ellipse, GrTest::TestStrokeRec(random));
3163 SkRect ellipse = GrTest::TestSquare(random);
3164 return DIEllipseOp::Make(std::move(paint), viewMatrix, ellipse, GrTest::TestStrokeRec(random));