Lines Matching refs:rect
12 static SkPath build_squircle(SkPath::Verb verb, const SkRect& rect, SkPathDirection dir) {
17 path.addRect(rect, dir);
21 path.moveTo(rect.centerX(), rect.fTop);
22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY());
23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom);
24 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY());
25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop);
28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir);
32 SkScalar aX14 = rect.fLeft + rect.width() * 1 / 4;
33 SkScalar aX34 = rect.fLeft + rect.width() * 3 / 4;
34 SkScalar aY14 = rect.fTop + rect.height() * 1 / 4;
35 SkScalar aY34 = rect.fTop + rect.height() * 3 / 4;
36 path.moveTo(rect.centerX(), rect.fTop);
37 path.cubicTo(aX34, rect.fTop, rect.fRight, aY14, rect.fRight, rect.centerY());
38 path.cubicTo(rect.fRight, aY34, aX34, rect.fBottom, rect.centerX(), rect.fBottom);
39 path.cubicTo(aX14, rect.fBottom, rect.fLeft, aY34, rect.fLeft, rect.centerY());
40 path.cubicTo(rect.fLeft, aY14, aX14, rect.fTop, rect.centerX(), rect.fTop);