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