Lines Matching refs:Ellipse
502 * ellipse, specified as a 2D offset from center, and the reciprocals of the outer and inner radii,
577 // For stroked ellipses, we use the full ellipse equation (x^2/a^2 + y^2/b^2 = 1)
582 // ellipse size.
689 * The output of this effect is a modulation of the input color and coverage for an ellipse,
1724 const SkRect& ellipse,
1728 params.fCenter = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
1730 SkScalar ellipseXRadius = SkScalarHalf(ellipse.width());
1731 SkScalar ellipseYRadius = SkScalarHalf(ellipse.height());
1766 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
1808 fEllipses.emplace_back(Ellipse{color, params.fXRadius, params.fYRadius,
1876 for (const auto& ellipse : fEllipses) {
1877 GrVertexColor color(ellipse.fColor, fWideColor);
1878 SkScalar xRadius = ellipse.fXRadius;
1879 SkScalar yRadius = ellipse.fYRadius;
1885 SkScalarInvert(ellipse.fInnerXRadius),
1886 SkScalarInvert(ellipse.fInnerYRadius)
1893 // computing an ellipse and modifying that distance, so we normalize to 1
1899 verts.writeQuad(GrVertexWriter::TriStripFromRect(ellipse.fDevBounds),
1933 struct Ellipse {
1947 SkSTArray<1, Ellipse, true> fEllipses;
1973 const SkRect& ellipse,
1976 params.fCenter = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
1977 params.fXRadius = SkScalarHalf(ellipse.width());
1978 params.fYRadius = SkScalarHalf(ellipse.height());
2005 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
2056 Ellipse{viewMatrix, color, params.fXRadius, params.fYRadius, params.fInnerXRadius,
2115 for (const auto& ellipse : fEllipses) {
2116 GrVertexColor color(ellipse.fColor, fWideColor);
2117 SkScalar xRadius = ellipse.fXRadius;
2118 SkScalar yRadius = ellipse.fYRadius;
2121 SkScalar offsetDx = ellipse.fGeoDx / xRadius;
2122 SkScalar offsetDy = ellipse.fGeoDy / yRadius;
2130 innerRatioX = xRadius / ellipse.fInnerXRadius;
2131 innerRatioY = yRadius / ellipse.fInnerYRadius;
2134 verts.writeQuad(GrVertexWriter::TriStripFromRect(ellipse.fBounds),
2171 struct Ellipse {
2187 SkSTArray<1, Ellipse, true> fEllipses;
2683 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
2813 // computing an ellipse and modifying that distance, so we normalize to 1.
2952 // The way the effect interpolates the offset-to-ellipse/circle-center attribute only works on
2965 // otherwise we use the ellipse renderer
3038 // prefer the device space ellipse op for batchability
3150 SkRect ellipse = GrTest::TestSquare(random);
3151 return EllipseOp::Make(context, std::move(paint), viewMatrix, ellipse,
3157 SkRect ellipse = GrTest::TestSquare(random);
3158 return DIEllipseOp::Make(context, std::move(paint), viewMatrix, ellipse,