Lines Matching refs:p1
68 SkPath quadPath(SkPoint p1, SkPoint p2) { in quadPath() argument
69 SkASSERT(p1.y() == p2.y()); in quadPath()
72 path.moveTo(p1); in quadPath()
75 SkPoint p3 = SkPoint::Make((p1.x() + p2.x()) / 2.0f, p1.y() * 0.7f); in quadPath()
77 path.quadTo(p3, p1); in quadPath()
82 SkPath cubicPath(SkPoint p1, SkPoint p2) { in cubicPath() argument
83 SkASSERT(p1.y() == p2.y()); in cubicPath()
86 path.moveTo(p1); in cubicPath()
88 SkPoint p3 = SkPoint::Make((p1.x() + p2.x()) / 3.0f, p1.y() * 0.7f); in cubicPath()
89 SkPoint p4 = SkPoint::Make(2.0f*(p1.x() + p2.x()) / 3.0f, p1.y() * 1.5f); in cubicPath()
96 SkPath linSemicirclePath(SkPoint p1, SkPoint p2) { in linSemicirclePath() argument
97 SkASSERT(p1.y() == p2.y()); in linSemicirclePath()
100 path.moveTo(p1); in linSemicirclePath()
112 path.lineTo(p1); in linSemicirclePath()
117 SkPath rectPath(SkPoint p1) { in rectPath() argument
118 SkRect r = SkRect::MakeXYWH(p1.fX, p1.fY, 20, 20); in rectPath()
131 SkPoint p1 = SkPoint::Make(50, 50); in onDrawContent() local
137 path = quadPath(p1, p2); in onDrawContent()
140 path = cubicPath(p1, p2); in onDrawContent()
143 path = rectPath(p1); in onDrawContent()
146 path = linSemicirclePath(p1, p2); in onDrawContent()
149 path = quadPath(p1, p2); in onDrawContent()