Searched refs:yRad (Results 1 – 4 of 4) sorted by relevance
/external/skia/src/core/ |
D | SkRRect.cpp | 15 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() 37 yRad *= 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/ |
D | SkRRect.h | 165 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in MakeRectXY() argument 167 rr.setRectXY(rect, xRad, yRad); in MakeRectXY() 185 SkScalar yRad = SkScalarHalf(fRect.height()); in setOval() local 188 fRadii[i].set(xRad, yRad); in setOval() 198 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
|
/external/skia/gm/ |
D | filterfastbounds.cpp | 35 SkScalar yRad = r.height() / 4.0f; in draw_rrect() local 38 rr.setRectXY(r, xRad, yRad); in draw_rrect() 44 SkScalar yRad = r.height() / 4.0f; in draw_drrect() local 47 outer.setRectXY(r, xRad, yRad); in draw_drrect() 49 inner.inset(xRad, yRad); in draw_drrect()
|
/external/skia/samplecode/ |
D | SamplePathFuzz.cpp | 341 SkScalar yRad = makeScalar(); in makeRRect() local 342 rrect.setRectXY(rect, xRad, yRad); in makeRRect()
|