Lines Matching refs:gPath
147 static SkPath gPath[7]; in TestPath() local
152 gPath[0].moveTo(0.f, 0.f); in TestPath()
153 gPath[0].lineTo(10.f, 10.f); in TestPath()
155 gPath[1].moveTo(0.f, 0.f); in TestPath()
156 gPath[1].quadTo(10.f, 10.f, 20.f, 20.f); in TestPath()
158 gPath[2].moveTo(0.f, 0.f); in TestPath()
159 gPath[2].conicTo(10.f, 10.f, 20.f, 20.f, 1.f); in TestPath()
161 gPath[3].moveTo(0.f, 0.f); in TestPath()
162 gPath[3].cubicTo(10.f, 10.f, 20.f, 20.f, 30.f, 30.f); in TestPath()
164 gPath[4].moveTo(0.f, 0.f); in TestPath()
165 gPath[4].lineTo(10.f, 10.f); in TestPath()
166 gPath[4].quadTo(10.f, 10.f, 20.f, 20.f); in TestPath()
167 gPath[4].conicTo(10.f, 10.f, 20.f, 20.f, 1.f); in TestPath()
168 gPath[4].cubicTo(10.f, 10.f, 20.f, 20.f, 30.f, 30.f); in TestPath()
170 gPath[5].moveTo(0.0f, 0.0f); in TestPath()
171 gPath[5].lineTo(10.0f, 0.0f); in TestPath()
172 gPath[5].lineTo(10.0f, 10.0f); in TestPath()
173 gPath[5].lineTo(0.0f, 10.0f); in TestPath()
174 gPath[5].close(); in TestPath()
176 gPath[6].moveTo(0.0f, 0.0f); in TestPath()
177 gPath[6].lineTo(5.0f, 5.0f); in TestPath()
178 gPath[6].lineTo(10.0f, 0.0f); in TestPath()
179 gPath[6].lineTo(10.0f, 10.0f); in TestPath()
180 gPath[6].lineTo(0.0f, 10.0f); in TestPath()
181 gPath[6].close(); in TestPath()
184 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPath()
188 static SkPath gPath[3]; in TestPathConvex() local
193 gPath[0].moveTo(-1.5f, -50.0f); in TestPathConvex()
194 gPath[0].lineTo(-1.5f, -50.0f); in TestPathConvex()
195 gPath[0].lineTo( 1.5f, -50.0f); in TestPathConvex()
196 gPath[0].lineTo( 1.5f, 50.0f); in TestPathConvex()
197 gPath[0].lineTo(-1.5f, 50.0f); in TestPathConvex()
199 gPath[1].moveTo(-0.025f, -0.025f); in TestPathConvex()
200 gPath[1].lineTo(-0.025f, -0.025f); in TestPathConvex()
201 gPath[1].lineTo( 0.025f, -0.025f); in TestPathConvex()
202 gPath[1].lineTo( 0.025f, 0.025f); in TestPathConvex()
203 gPath[1].lineTo(-0.025f, 0.025f); in TestPathConvex()
205 gPath[2].moveTo(-10.0f, -50.0f); in TestPathConvex()
206 gPath[2].lineTo(-10.0f, -50.0f); in TestPathConvex()
207 gPath[2].lineTo( 10.0f, -50.0f); in TestPathConvex()
208 gPath[2].lineTo( 50.0f, 31.0f); in TestPathConvex()
209 gPath[2].lineTo( 40.0f, 50.0f); in TestPathConvex()
210 gPath[2].lineTo(-40.0f, 50.0f); in TestPathConvex()
211 gPath[2].lineTo(-50.0f, 31.0f); in TestPathConvex()
213 for (size_t i = 0; i < SK_ARRAY_COUNT(gPath); i++) { in TestPathConvex()
214 SkASSERT(SkPath::kConvex_Convexity == gPath[i].getConvexity()); in TestPathConvex()
218 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPathConvex()