Lines Matching refs:Ellipse
498 * ellipse, specified as a 2D offset from center, and the reciprocals of the outer and inner radii,
566 // For stroked ellipses, we use the full ellipse equation (x^2/a^2 + y^2/b^2 = 1)
571 // ellipse size.
645 * The output of this effect is a modulation of the input color and coverage for an ellipse,
1642 const SkRect& ellipse,
1646 params.fCenter = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
1648 SkScalar ellipseXRadius = SkScalarHalf(ellipse.width());
1649 SkScalar ellipseYRadius = SkScalarHalf(ellipse.height());
1684 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
1713 fEllipses.emplace_back(Ellipse{color, params.fXRadius, params.fYRadius,
1778 for (const auto& ellipse : fEllipses) {
1779 GrVertexColor color(ellipse.fColor, fWideColor);
1780 SkScalar xRadius = ellipse.fXRadius;
1781 SkScalar yRadius = ellipse.fYRadius;
1787 SkScalarInvert(ellipse.fInnerXRadius),
1788 SkScalarInvert(ellipse.fInnerYRadius)
1795 // computing an ellipse and modifying that distance, so we normalize to 1
1801 verts.writeQuad(GrVertexWriter::TriStripFromRect(ellipse.fDevBounds),
1831 struct Ellipse {
1844 SkSTArray<1, Ellipse, true> fEllipses;
1870 const SkRect& ellipse,
1873 params.fCenter = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
1874 params.fXRadius = SkScalarHalf(ellipse.width());
1875 params.fYRadius = SkScalarHalf(ellipse.height());
1902 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
1940 Ellipse{viewMatrix, color, params.fXRadius, params.fYRadius, params.fInnerXRadius,
1995 for (const auto& ellipse : fEllipses) {
1996 GrVertexColor color(ellipse.fColor, fWideColor);
1997 SkScalar xRadius = ellipse.fXRadius;
1998 SkScalar yRadius = ellipse.fYRadius;
2001 SkScalar offsetDx = ellipse.fGeoDx / xRadius;
2002 SkScalar offsetDy = ellipse.fGeoDy / yRadius;
2010 innerRatioX = xRadius / ellipse.fInnerXRadius;
2011 innerRatioY = yRadius / ellipse.fInnerYRadius;
2014 verts.writeQuad(GrVertexWriter::TriStripFromRect(ellipse.fBounds),
2047 struct Ellipse {
2062 SkSTArray<1, Ellipse, true> fEllipses;
2554 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
2680 // computing an ellipse and modifying that distance, so we normalize to 1.
2810 // The way the effect interpolates the offset-to-ellipse/circle-center attribute only works on
2823 // otherwise we use the ellipse renderer
2896 // prefer the device space ellipse op for batchability
3008 SkRect ellipse = GrTest::TestSquare(random);
3009 return EllipseOp::Make(context, std::move(paint), viewMatrix, ellipse,
3015 SkRect ellipse = GrTest::TestSquare(random);
3016 return DIEllipseOp::Make(context, std::move(paint), viewMatrix, ellipse,