Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkRRect.cpp13 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY() argument
19 if (!SkScalarsAreFinite(xRad, yRad)) { in setRectXY()
20 xRad = yRad = 0; // devolve into a simple rect in setRectXY()
22 if (xRad <= 0 || yRad <= 0) { in setRectXY()
28 if (rect.width() < xRad+xRad || rect.height() < yRad+yRad) { in setRectXY()
29 SkScalar scale = SkMinScalar(rect.width() / (xRad + xRad), rect.height() / (yRad + yRad)); in setRectXY()
31 xRad = SkScalarMul(xRad, scale); in setRectXY()
37 fRadii[i].set(xRad, yRad); in setRectXY()
40 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY()
/external/skia/gm/
Dfilterfastbounds.cpp31 SkScalar xRad = r.width() / 4.0f; in draw_rrect() local
35 rr.setRectXY(r, xRad, yRad); in draw_rrect()
40 SkScalar xRad = r.width() / 4.0f; in draw_drrect() local
44 outer.setRectXY(r, xRad, yRad); in draw_drrect()
46 inner.inset(xRad, yRad); in draw_drrect()
/external/skia/include/core/
DSkRRect.h147 SkScalar xRad = SkScalarHalf(oval.width()); in setOval() local
152 fRadii[i].set(xRad, yRad); in setOval()
162 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
/external/skia/samplecode/
DSamplePathFuzz.cpp339 SkScalar xRad = makeScalar(); in makeRRect() local
341 rrect.setRectXY(rect, xRad, yRad); in makeRRect()