Lines Matching refs:wn

14                                       const SkIntersectionHelper& wn, const SkIntersections& i) {  in debugShowLineIntersection()  argument
18 __FUNCTION__, LINE_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowLineIntersection()
26 SkDebugf(" wnTs[0]=%g " LINE_DEBUG_STR, i[1][0], LINE_DEBUG_DATA(wn.pts())); in debugShowLineIntersection()
34 const SkIntersectionHelper& wn, in debugShowQuadLineIntersection() argument
39 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowQuadLineIntersection()
47 SkDebugf(" wnTs[0]=%g " LINE_DEBUG_STR, i[1][0], LINE_DEBUG_DATA(wn.pts())); in debugShowQuadLineIntersection()
55 const SkIntersectionHelper& wn, const SkIntersections& i) { in debugShowQuadIntersection() argument
59 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts())); in debugShowQuadIntersection()
67 SkDebugf(" wnTs[0]=%g " QUAD_DEBUG_STR, i[1][0], QUAD_DEBUG_DATA(wn.pts())); in debugShowQuadIntersection()
75 const SkIntersectionHelper& wn, const SkIntersections& i) { in debugShowConicLineIntersection() argument
79 __FUNCTION__, CONIC_DEBUG_DATA(wt.pts(), wt.weight()), LINE_DEBUG_DATA(wn.pts())); in debugShowConicLineIntersection()
87 SkDebugf(" wnTs[0]=%g " LINE_DEBUG_STR, i[1][0], LINE_DEBUG_DATA(wn.pts())); in debugShowConicLineIntersection()
95 const SkIntersectionHelper& wn, const SkIntersections& i) { in debugShowConicQuadIntersection() argument
99 __FUNCTION__, CONIC_DEBUG_DATA(wt.pts(), wt.weight()), QUAD_DEBUG_DATA(wn.pts())); in debugShowConicQuadIntersection()
107 SkDebugf(" wnTs[0]=%g " QUAD_DEBUG_STR, i[1][0], QUAD_DEBUG_DATA(wn.pts())); in debugShowConicQuadIntersection()
115 const SkIntersectionHelper& wn, const SkIntersections& i) { in debugShowConicIntersection() argument
120 CONIC_DEBUG_DATA(wn.pts(), wn.weight())); in debugShowConicIntersection()
128 SkDebugf(" wnTs[0]=%g " CONIC_DEBUG_STR, i[1][0], CONIC_DEBUG_DATA(wn.pts(), wn.weight())); in debugShowConicIntersection()
136 const SkIntersectionHelper& wn, const SkIntersections& i) { in debugShowCubicLineIntersection() argument
140 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowCubicLineIntersection()
148 SkDebugf(" wnTs[0]=%g " LINE_DEBUG_STR, i[1][0], LINE_DEBUG_DATA(wn.pts())); in debugShowCubicLineIntersection()
156 const SkIntersectionHelper& wn, const SkIntersections& i) { in debugShowCubicQuadIntersection() argument
160 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts())); in debugShowCubicQuadIntersection()
168 SkDebugf(" wnTs[0]=%g " QUAD_DEBUG_STR, i[1][0], QUAD_DEBUG_DATA(wn.pts())); in debugShowCubicQuadIntersection()
176 const SkIntersectionHelper& wn, const SkIntersections& i) { in debugShowCubicConicIntersection() argument
180 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), CONIC_DEBUG_DATA(wn.pts(), wn.weight())); in debugShowCubicConicIntersection()
188 SkDebugf(" wnTs[0]=%g " CONIC_DEBUG_STR, i[1][0], CONIC_DEBUG_DATA(wn.pts(), wn.weight())); in debugShowCubicConicIntersection()
196 const SkIntersectionHelper& wn, const SkIntersections& i) { in debugShowCubicIntersection() argument
200 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), CUBIC_DEBUG_DATA(wn.pts())); in debugShowCubicIntersection()
208 SkDebugf(" wnTs[0]=%g " CUBIC_DEBUG_STR, i[1][0], CUBIC_DEBUG_DATA(wn.pts())); in debugShowCubicIntersection()
271 SkIntersectionHelper wn; in AddIntersectTs() local
272 wn.init(next); in AddIntersectTs()
275 if (test == next && !wn.startAfter(wt)) { in AddIntersectTs()
279 if (!SkPathOpsBounds::Intersects(wt.bounds(), wn.bounds())) { in AddIntersectTs()
291 switch (wn.segmentType()) { in AddIntersectTs()
295 pts = ts.lineHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
297 debugShowLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
300 pts = ts.quadHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
302 debugShowQuadLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
305 pts = ts.conicHorizontal(wn.pts(), wn.weight(), wt.left(), in AddIntersectTs()
307 debugShowConicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
310 pts = ts.cubicHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
312 debugShowCubicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
320 switch (wn.segmentType()) { in AddIntersectTs()
324 pts = ts.lineVertical(wn.pts(), wt.top(), in AddIntersectTs()
326 debugShowLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
330 pts = ts.quadVertical(wn.pts(), wt.top(), in AddIntersectTs()
332 debugShowQuadLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
336 pts = ts.conicVertical(wn.pts(), wn.weight(), wt.top(), in AddIntersectTs()
338 debugShowConicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
342 pts = ts.cubicVertical(wn.pts(), wt.top(), in AddIntersectTs()
344 debugShowCubicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
352 switch (wn.segmentType()) { in AddIntersectTs()
354 pts = ts.lineHorizontal(wt.pts(), wn.left(), in AddIntersectTs()
355 wn.right(), wn.y(), wn.xFlipped()); in AddIntersectTs()
356 debugShowLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
359 pts = ts.lineVertical(wt.pts(), wn.top(), in AddIntersectTs()
360 wn.bottom(), wn.x(), wn.yFlipped()); in AddIntersectTs()
361 debugShowLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
364 pts = ts.lineLine(wt.pts(), wn.pts()); in AddIntersectTs()
365 debugShowLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
369 pts = ts.quadLine(wn.pts(), wt.pts()); in AddIntersectTs()
370 debugShowQuadLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
374 pts = ts.conicLine(wn.pts(), wn.weight(), wt.pts()); in AddIntersectTs()
375 debugShowConicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
379 pts = ts.cubicLine(wn.pts(), wt.pts()); in AddIntersectTs()
380 debugShowCubicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
387 switch (wn.segmentType()) { in AddIntersectTs()
389 pts = ts.quadHorizontal(wt.pts(), wn.left(), in AddIntersectTs()
390 wn.right(), wn.y(), wn.xFlipped()); in AddIntersectTs()
391 debugShowQuadLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
394 pts = ts.quadVertical(wt.pts(), wn.top(), in AddIntersectTs()
395 wn.bottom(), wn.x(), wn.yFlipped()); in AddIntersectTs()
396 debugShowQuadLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
399 pts = ts.quadLine(wt.pts(), wn.pts()); in AddIntersectTs()
400 debugShowQuadLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
403 pts = ts.intersect(quad1.set(wt.pts()), quad2.set(wn.pts())); in AddIntersectTs()
404 debugShowQuadIntersection(pts, wt, wn, ts); in AddIntersectTs()
409 pts = ts.intersect(conic2.set(wn.pts(), wn.weight()), in AddIntersectTs()
411 debugShowConicQuadIntersection(pts, wn, wt, ts); in AddIntersectTs()
416 pts = ts.intersect(cubic2.set(wn.pts()), quad1.set(wt.pts())); in AddIntersectTs()
417 debugShowCubicQuadIntersection(pts, wn, wt, ts); in AddIntersectTs()
425 switch (wn.segmentType()) { in AddIntersectTs()
427 pts = ts.conicHorizontal(wt.pts(), wt.weight(), wn.left(), in AddIntersectTs()
428 wn.right(), wn.y(), wn.xFlipped()); in AddIntersectTs()
429 debugShowConicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
432 pts = ts.conicVertical(wt.pts(), wt.weight(), wn.top(), in AddIntersectTs()
433 wn.bottom(), wn.x(), wn.yFlipped()); in AddIntersectTs()
434 debugShowConicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
437 pts = ts.conicLine(wt.pts(), wt.weight(), wn.pts()); in AddIntersectTs()
438 debugShowConicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
442 quad2.set(wn.pts())); in AddIntersectTs()
443 debugShowConicQuadIntersection(pts, wt, wn, ts); in AddIntersectTs()
448 conic2.set(wn.pts(), wn.weight())); in AddIntersectTs()
449 debugShowConicIntersection(pts, wt, wn, ts); in AddIntersectTs()
454 pts = ts.intersect(cubic2.set(wn.pts()), in AddIntersectTs()
456 debugShowCubicConicIntersection(pts, wn, wt, ts); in AddIntersectTs()
462 switch (wn.segmentType()) { in AddIntersectTs()
464 pts = ts.cubicHorizontal(wt.pts(), wn.left(), in AddIntersectTs()
465 wn.right(), wn.y(), wn.xFlipped()); in AddIntersectTs()
466 debugShowCubicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
469 pts = ts.cubicVertical(wt.pts(), wn.top(), in AddIntersectTs()
470 wn.bottom(), wn.x(), wn.yFlipped()); in AddIntersectTs()
471 debugShowCubicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
474 pts = ts.cubicLine(wt.pts(), wn.pts()); in AddIntersectTs()
475 debugShowCubicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
478 pts = ts.intersect(cubic1.set(wt.pts()), quad2.set(wn.pts())); in AddIntersectTs()
479 debugShowCubicQuadIntersection(pts, wt, wn, ts); in AddIntersectTs()
484 conic2.set(wn.pts(), wn.weight())); in AddIntersectTs()
485 debugShowCubicConicIntersection(pts, wt, wn, ts); in AddIntersectTs()
489 pts = ts.intersect(cubic1.set(wt.pts()), cubic2.set(wn.pts())); in AddIntersectTs()
490 debugShowCubicIntersection(pts, wt, wn, ts); in AddIntersectTs()
508 wn.segment()->debugValidate(); in AddIntersectTs()
509 SkOpPtT* nextTAt = wn.segment()->addT(ts[!swap][pt], SkOpSegment::kAllowAlias, in AddIntersectTs()
517 wn.segment()->debugValidate(); in AddIntersectTs()
542 wn.segment()->debugValidate(); in AddIntersectTs()
546 } while (wn.advance()); in AddIntersectTs()