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 = SkScalarMul(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 | 156 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in MakeRectXY() argument 158 rr.setRectXY(rect, xRad, yRad); in MakeRectXY() 176 SkScalar yRad = SkScalarHalf(fRect.height()); in setOval() local 179 fRadii[i].set(xRad, yRad); in setOval() 189 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
|
/external/skia/gm/ |
D | filterfastbounds.cpp | 34 SkScalar yRad = r.height() / 4.0f; in draw_rrect() local 37 rr.setRectXY(r, xRad, yRad); in draw_rrect() 43 SkScalar yRad = r.height() / 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/ |
D | SamplePathFuzz.cpp | 341 SkScalar yRad = makeScalar(); in makeRRect() local 342 rrect.setRectXY(rect, xRad, yRad); in makeRRect()
|