Home
last modified time | relevance | path

Searched refs:xRad (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/core/
DSkRRect.cpp15 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY() argument
24 if (!SkScalarsAreFinite(xRad, yRad)) { in setRectXY()
25 xRad = yRad = 0; // devolve into a simple rect in setRectXY()
27 if (xRad <= 0 || yRad <= 0) { in setRectXY()
33 if (fRect.width() < xRad+xRad || fRect.height() < yRad+yRad) { in setRectXY()
34 SkScalar scale = SkMinScalar(fRect.width() / (xRad + xRad), fRect.height() / (yRad + yRad)); in setRectXY()
36 xRad = SkScalarMul(xRad, scale); in setRectXY()
41 fRadii[i].set(xRad, yRad); in setRectXY()
44 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY()
/external/skia/include/core/
DSkRRect.h156 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in MakeRectXY() argument
158 rr.setRectXY(rect, xRad, yRad); in MakeRectXY()
175 SkScalar xRad = SkScalarHalf(fRect.width()); in setOval() local
179 fRadii[i].set(xRad, yRad); in setOval()
189 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
/external/skia/gm/
Dfilterfastbounds.cpp33 SkScalar xRad = r.width() / 4.0f; in draw_rrect() local
37 rr.setRectXY(r, xRad, yRad); in draw_rrect()
42 SkScalar xRad = r.width() / 4.0f; in draw_drrect() local
46 outer.setRectXY(r, xRad, yRad); in draw_drrect()
48 inner.inset(xRad, yRad); in draw_drrect()
/external/skia/samplecode/
DSamplePathFuzz.cpp340 SkScalar xRad = makeScalar(); in makeRRect() local
342 rrect.setRectXY(rect, xRad, yRad); in makeRRect()