Lines Matching refs:SkPath
24 if (SkPath::kQuad_Verb == fVerb) {
44 if (SkPath::kQuad_Verb <= fVerb) {
47 if (SkPath::kCubic_Verb == fVerb) {
49 } else if (SkPath::kConic_Verb == fVerb) {
96 static SkPath::Verb get_path_verb(int index, const SkPath& path) {
98 return SkPath::kMove_Verb;
101 SkPath::Verb verb;
102 SkPath::Iter iter(path, true);
104 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
111 return SkPath::kMove_Verb;
115 static SkScalar get_path_weight(int index, const SkPath& path) { in get_path_weight()
117 SkPath::Verb verb; in get_path_weight()
118 SkPath::Iter iter(path, true); in get_path_weight()
120 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in get_path_weight()
124 return verb == SkPath::kConic_Verb ? iter.conicWeight() : 1; in get_path_weight()
130 static void set_path_pt(int index, const SkPoint& pt, SkPath* path) { in set_path_pt()
131 SkPath result; in set_path_pt()
133 SkPath::Verb verb; in set_path_pt()
134 SkPath::RawIter iter(*path); in set_path_pt()
137 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in set_path_pt()
139 case SkPath::kMove_Verb: in set_path_pt()
142 case SkPath::kLine_Verb: in set_path_pt()
145 case SkPath::kQuad_Verb: in set_path_pt()
146 case SkPath::kConic_Verb: in set_path_pt()
149 case SkPath::kCubic_Verb: in set_path_pt()
152 case SkPath::kClose_Verb: in set_path_pt()
154 case SkPath::kDone_Verb: in set_path_pt()
164 case SkPath::kMove_Verb: in set_path_pt()
167 case SkPath::kLine_Verb: in set_path_pt()
171 case SkPath::kQuad_Verb: in set_path_pt()
175 case SkPath::kConic_Verb: in set_path_pt()
179 case SkPath::kCubic_Verb: in set_path_pt()
183 case SkPath::kClose_Verb: in set_path_pt()
187 case SkPath::kDone_Verb: in set_path_pt()
202 static void add_path_segment(int index, SkPath* path) { in add_path_segment()
203 SkPath result; in add_path_segment()
207 SkPath::Verb verb; in add_path_segment()
208 SkPath::RawIter iter(*path); in add_path_segment()
210 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in add_path_segment()
214 case SkPath::kLine_Verb: in add_path_segment()
217 case SkPath::kQuad_Verb: { in add_path_segment()
223 case SkPath::kConic_Verb: { in add_path_segment()
234 case SkPath::kCubic_Verb: { in add_path_segment()
241 case SkPath::kClose_Verb: { in add_path_segment()
247 } else if (verb == SkPath::kConic_Verb) { in add_path_segment()
251 case SkPath::kMove_Verb: in add_path_segment()
254 case SkPath::kLine_Verb: in add_path_segment()
257 case SkPath::kQuad_Verb: in add_path_segment()
260 case SkPath::kConic_Verb: in add_path_segment()
263 case SkPath::kCubic_Verb: in add_path_segment()
266 case SkPath::kClose_Verb: in add_path_segment()
269 case SkPath::kDone_Verb: in add_path_segment()
278 static void delete_path_segment(int index, SkPath* path) { in delete_path_segment()
279 SkPath result; in delete_path_segment()
281 SkPath::Verb verb; in delete_path_segment()
282 SkPath::RawIter iter(*path); in delete_path_segment()
284 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in delete_path_segment()
289 case SkPath::kMove_Verb: in delete_path_segment()
292 case SkPath::kLine_Verb: in delete_path_segment()
295 case SkPath::kQuad_Verb: in delete_path_segment()
298 case SkPath::kConic_Verb: in delete_path_segment()
301 case SkPath::kCubic_Verb: in delete_path_segment()
304 case SkPath::kClose_Verb: in delete_path_segment()
307 case SkPath::kDone_Verb: in delete_path_segment()
316 static void set_path_weight(int index, SkScalar w, SkPath* path) { in set_path_weight()
317 SkPath result; in set_path_weight()
319 SkPath::Verb verb; in set_path_weight()
320 SkPath::Iter iter(*path, true); in set_path_weight()
322 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in set_path_weight()
325 case SkPath::kMove_Verb: in set_path_weight()
328 case SkPath::kLine_Verb: in set_path_weight()
331 case SkPath::kQuad_Verb: in set_path_weight()
334 case SkPath::kConic_Verb: in set_path_weight()
337 case SkPath::kCubic_Verb: in set_path_weight()
340 case SkPath::kClose_Verb: in set_path_weight()
343 case SkPath::kDone_Verb: in set_path_weight()
352 static void set_path_verb(int index, SkPath::Verb v, SkPath* path, SkScalar w) { in set_path_verb()
353 SkASSERT(SkPath::kLine_Verb <= v && v <= SkPath::kCubic_Verb); in set_path_verb()
354 SkPath result; in set_path_verb()
356 SkPath::Verb verb; in set_path_verb()
357 SkPath::Iter iter(*path, true); in set_path_verb()
359 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in set_path_verb()
360 SkScalar weight = verb == SkPath::kConic_Verb ? iter.conicWeight() : 1; in set_path_verb()
362 SkASSERT(SkPath::kLine_Verb <= verb && verb <= SkPath::kCubic_Verb); in set_path_verb()
364 case SkPath::kLine_Verb: in set_path_verb()
366 case SkPath::kConic_Verb: in set_path_verb()
368 case SkPath::kQuad_Verb: in set_path_verb()
373 case SkPath::kCubic_Verb: in set_path_verb()
385 case SkPath::kQuad_Verb: in set_path_verb()
386 case SkPath::kConic_Verb: in set_path_verb()
388 case SkPath::kLine_Verb: in set_path_verb()
391 case SkPath::kConic_Verb: in set_path_verb()
393 case SkPath::kQuad_Verb: in set_path_verb()
395 case SkPath::kCubic_Verb: { in set_path_verb()
408 case SkPath::kCubic_Verb: in set_path_verb()
410 case SkPath::kLine_Verb: in set_path_verb()
413 case SkPath::kConic_Verb: in set_path_verb()
415 case SkPath::kQuad_Verb: { in set_path_verb()
434 case SkPath::kMove_Verb: in set_path_verb()
437 case SkPath::kLine_Verb: in set_path_verb()
440 case SkPath::kQuad_Verb: in set_path_verb()
443 case SkPath::kConic_Verb: in set_path_verb()
446 case SkPath::kCubic_Verb: in set_path_verb()
449 case SkPath::kClose_Verb: in set_path_verb()
480 static void construct_path(SkPath& path) { in construct_path()
685 SkPath::Verb fVerb;
692 , fVerb((SkPath::Verb) -1) in MyClick()
700 , fVerb((SkPath::Verb) -1) in MyClick()
704 MyClick(Sample* target, ClickType type, int index, SkPath::Verb verb, SkScalar weight) in MyClick()
772 SkPath fPath;
783 SkPath fPath;
796 SkPath fPath;
1081 SkPath::Verb verb; in draw_bisects()
1082 SkPath::Iter iter(fPath, true); in draw_bisects()
1085 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in draw_bisects()
1093 case SkPath::kLine_Verb: in draw_bisects()
1097 case SkPath::kQuad_Verb: { in draw_bisects()
1118 case SkPath::kConic_Verb: in draw_bisects()
1132 case SkPath::kCubic_Verb: { in draw_bisects()
1164 case SkPath::kClose_Verb: in draw_bisects()
1173 if (SkPath::kLine_Verb <= verb && verb <= SkPath::kCubic_Verb) { in draw_bisects()
1190 SkPath::Verb verb; in draw_segment()
1191 SkPath::Iter iter(fPath, true); in draw_segment()
1193 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in draw_segment()
1198 case SkPath::kLine_Verb: in draw_segment()
1202 case SkPath::kQuad_Verb: { in draw_segment()
1203 SkPath qPath; in draw_segment()
1209 case SkPath::kConic_Verb: { in draw_segment()
1210 SkPath conicPath; in draw_segment()
1216 case SkPath::kCubic_Verb: { in draw_segment()
1219 SkPath cPath; in draw_segment()
1238 int hittest_verb(SkPoint pt, SkPath::Verb* verbPtr, SkScalar* weight) { in hittest_verb()
1243 SkPath::Verb verb; in hittest_verb()
1244 SkPath::Iter iter(fPath, true); in hittest_verb()
1246 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in hittest_verb()
1249 case SkPath::kLine_Verb: { in hittest_verb()
1258 case SkPath::kQuad_Verb: { in hittest_verb()
1267 case SkPath::kConic_Verb: { in hittest_verb()
1277 case SkPath::kCubic_Verb: { in hittest_verb()
1378 void path_coverage(const SkPath& path, uint8_t* distanceMap, int w, int h) { in path_coverage()
1381 SkPath::Verb verb; in path_coverage()
1382 SkPath::Iter iter(path, true); in path_coverage()
1383 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in path_coverage()
1385 case SkPath::kLine_Verb: in path_coverage()
1388 case SkPath::kQuad_Verb: in path_coverage()
1391 case SkPath::kConic_Verb: in path_coverage()
1394 case SkPath::kCubic_Verb: in path_coverage()
1411 void path_stroke(int index, SkPath* inner, SkPath* outer) { in path_stroke()
1416 SkPath::Verb verb; in path_stroke()
1417 SkPath::Iter iter(fPath, true); in path_stroke()
1419 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in path_stroke()
1422 case SkPath::kMove_Verb: in path_stroke()
1425 case SkPath::kLine_Verb: in path_stroke()
1433 case SkPath::kQuad_Verb: in path_stroke()
1441 case SkPath::kConic_Verb: in path_stroke()
1449 case SkPath::kCubic_Verb: in path_stroke()
1457 case SkPath::kClose_Verb: in path_stroke()
1464 case SkPath::kDone_Verb: in path_stroke()
1477 SkPath inner, outer; in draw_stroke()
1501 SkPath& outPath = fStrokes[index].fPath; in trim_strokes()
1506 SkPath& inPath = fStrokes[inner].fPath; in trim_strokes()
1521 SkPath strokePath; in onDrawContent()
1581 SkPath path; in onDrawContent()
1618 SkPath::Verb verb; in onFindClickHandler()
1679 fLineButton.setEnabled(myClick->fVerb == SkPath::kLine_Verb); in onClick()
1680 fQuadButton.setEnabled(myClick->fVerb == SkPath::kQuad_Verb); in onClick()
1681 fConicButton.setEnabled(myClick->fVerb == SkPath::kConic_Verb); in onClick()
1682 fCubicButton.setEnabled(myClick->fVerb == SkPath::kCubic_Verb); in onClick()
1684 fWeightControl.fVisible = myClick->fVerb == SkPath::kConic_Verb; in onClick()
1716 set_path_verb(fActiveVerb, SkPath::kLine_Verb, &fPath, 1); in onClick()
1723 set_path_verb(fActiveVerb, SkPath::kQuad_Verb, &fPath, 1); in onClick()
1731 set_path_verb(fActiveVerb, SkPath::kConic_Verb, &fPath, defaultConicWeight); in onClick()
1739 set_path_verb(fActiveVerb, SkPath::kCubic_Verb, &fPath, 1); in onClick()