Lines Matching refs:wt

15 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt,  in debugShowLineIntersection()  argument
20 __FUNCTION__, LINE_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowLineIntersection()
24 i[0][0], LINE_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowLineIntersection()
35 static void debugShowQuadLineIntersection(int pts, const SkIntersectionHelper& wt, in debugShowQuadLineIntersection() argument
41 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowQuadLineIntersection()
45 i[0][0], QUAD_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowQuadLineIntersection()
56 static void debugShowQuadIntersection(int pts, const SkIntersectionHelper& wt, in debugShowQuadIntersection() argument
61 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts())); in debugShowQuadIntersection()
65 i[0][0], QUAD_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowQuadIntersection()
76 static void debugShowConicLineIntersection(int pts, const SkIntersectionHelper& wt, in debugShowConicLineIntersection() argument
81 __FUNCTION__, CONIC_DEBUG_DATA(wt.pts(), wt.weight()), LINE_DEBUG_DATA(wn.pts())); in debugShowConicLineIntersection()
85 i[0][0], CONIC_DEBUG_DATA(wt.pts(), wt.weight()), PT_DEBUG_DATA(i, 0)); in debugShowConicLineIntersection()
96 static void debugShowConicQuadIntersection(int pts, const SkIntersectionHelper& wt, in debugShowConicQuadIntersection() argument
101 __FUNCTION__, CONIC_DEBUG_DATA(wt.pts(), wt.weight()), QUAD_DEBUG_DATA(wn.pts())); in debugShowConicQuadIntersection()
105 i[0][0], CONIC_DEBUG_DATA(wt.pts(), wt.weight()), PT_DEBUG_DATA(i, 0)); in debugShowConicQuadIntersection()
116 static void debugShowConicIntersection(int pts, const SkIntersectionHelper& wt, in debugShowConicIntersection() argument
121 __FUNCTION__, CONIC_DEBUG_DATA(wt.pts(), wt.weight()), in debugShowConicIntersection()
126 i[0][0], CONIC_DEBUG_DATA(wt.pts(), wt.weight()), PT_DEBUG_DATA(i, 0)); in debugShowConicIntersection()
137 static void debugShowCubicLineIntersection(int pts, const SkIntersectionHelper& wt, in debugShowCubicLineIntersection() argument
142 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowCubicLineIntersection()
146 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicLineIntersection()
157 static void debugShowCubicQuadIntersection(int pts, const SkIntersectionHelper& wt, in debugShowCubicQuadIntersection() argument
162 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts())); in debugShowCubicQuadIntersection()
166 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicQuadIntersection()
177 static void debugShowCubicConicIntersection(int pts, const SkIntersectionHelper& wt, in debugShowCubicConicIntersection() argument
182 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), CONIC_DEBUG_DATA(wn.pts(), wn.weight())); in debugShowCubicConicIntersection()
186 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicConicIntersection()
197 static void debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt, in debugShowCubicIntersection() argument
202 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), CUBIC_DEBUG_DATA(wn.pts())); in debugShowCubicIntersection()
206 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicIntersection()
269 SkIntersectionHelper wt; in AddIntersectTs() local
270 wt.init(test); in AddIntersectTs()
276 if (test == next && !wn.startAfter(wt)) { in AddIntersectTs()
280 if (!SkPathOpsBounds::Intersects(wt.bounds(), wn.bounds())) { in AddIntersectTs()
289 switch (wt.segmentType()) { in AddIntersectTs()
296 pts = ts.lineHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
297 wt.right(), wt.y(), wt.xFlipped()); in AddIntersectTs()
298 debugShowLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
301 pts = ts.quadHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
302 wt.right(), wt.y(), wt.xFlipped()); in AddIntersectTs()
303 debugShowQuadLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
306 pts = ts.conicHorizontal(wn.pts(), wn.weight(), wt.left(), in AddIntersectTs()
307 wt.right(), wt.y(), wt.xFlipped()); in AddIntersectTs()
308 debugShowConicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
311 pts = ts.cubicHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
312 wt.right(), wt.y(), wt.xFlipped()); in AddIntersectTs()
313 debugShowCubicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
325 pts = ts.lineVertical(wn.pts(), wt.top(), in AddIntersectTs()
326 wt.bottom(), wt.x(), wt.yFlipped()); in AddIntersectTs()
327 debugShowLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
331 pts = ts.quadVertical(wn.pts(), wt.top(), in AddIntersectTs()
332 wt.bottom(), wt.x(), wt.yFlipped()); in AddIntersectTs()
333 debugShowQuadLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
337 pts = ts.conicVertical(wn.pts(), wn.weight(), wt.top(), in AddIntersectTs()
338 wt.bottom(), wt.x(), wt.yFlipped()); in AddIntersectTs()
339 debugShowConicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
343 pts = ts.cubicVertical(wn.pts(), wt.top(), in AddIntersectTs()
344 wt.bottom(), wt.x(), wt.yFlipped()); in AddIntersectTs()
345 debugShowCubicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
355 pts = ts.lineHorizontal(wt.pts(), wn.left(), in AddIntersectTs()
357 debugShowLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
360 pts = ts.lineVertical(wt.pts(), wn.top(), in AddIntersectTs()
362 debugShowLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
365 pts = ts.lineLine(wt.pts(), wn.pts()); in AddIntersectTs()
366 debugShowLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
370 pts = ts.quadLine(wn.pts(), wt.pts()); in AddIntersectTs()
371 debugShowQuadLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
375 pts = ts.conicLine(wn.pts(), wn.weight(), wt.pts()); in AddIntersectTs()
376 debugShowConicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
380 pts = ts.cubicLine(wn.pts(), wt.pts()); in AddIntersectTs()
381 debugShowCubicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
390 pts = ts.quadHorizontal(wt.pts(), wn.left(), in AddIntersectTs()
392 debugShowQuadLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
395 pts = ts.quadVertical(wt.pts(), wn.top(), in AddIntersectTs()
397 debugShowQuadLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
400 pts = ts.quadLine(wt.pts(), wn.pts()); in AddIntersectTs()
401 debugShowQuadLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
404 pts = ts.intersect(quad1.set(wt.pts()), quad2.set(wn.pts())); in AddIntersectTs()
405 debugShowQuadIntersection(pts, wt, wn, ts); in AddIntersectTs()
411 quad1.set(wt.pts())); in AddIntersectTs()
412 debugShowConicQuadIntersection(pts, wn, wt, ts); in AddIntersectTs()
417 pts = ts.intersect(cubic2.set(wn.pts()), quad1.set(wt.pts())); in AddIntersectTs()
418 debugShowCubicQuadIntersection(pts, wn, wt, ts); in AddIntersectTs()
428 pts = ts.conicHorizontal(wt.pts(), wt.weight(), wn.left(), in AddIntersectTs()
430 debugShowConicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
433 pts = ts.conicVertical(wt.pts(), wt.weight(), wn.top(), in AddIntersectTs()
435 debugShowConicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
438 pts = ts.conicLine(wt.pts(), wt.weight(), wn.pts()); in AddIntersectTs()
439 debugShowConicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
442 pts = ts.intersect(conic1.set(wt.pts(), wt.weight()), in AddIntersectTs()
444 debugShowConicQuadIntersection(pts, wt, wn, ts); in AddIntersectTs()
448 pts = ts.intersect(conic1.set(wt.pts(), wt.weight()), in AddIntersectTs()
450 debugShowConicIntersection(pts, wt, wn, ts); in AddIntersectTs()
457 conic1.set(wt.pts(), wt.weight() in AddIntersectTs()
459 debugShowCubicConicIntersection(pts, wn, wt, ts); in AddIntersectTs()
467 pts = ts.cubicHorizontal(wt.pts(), wn.left(), in AddIntersectTs()
469 debugShowCubicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
472 pts = ts.cubicVertical(wt.pts(), wn.top(), in AddIntersectTs()
474 debugShowCubicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
477 pts = ts.cubicLine(wt.pts(), wn.pts()); in AddIntersectTs()
478 debugShowCubicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
481 pts = ts.intersect(cubic1.set(wt.pts()), quad2.set(wn.pts())); in AddIntersectTs()
482 debugShowCubicQuadIntersection(pts, wt, wn, ts); in AddIntersectTs()
486 pts = ts.intersect(cubic1.set(wt.pts() in AddIntersectTs()
490 debugShowCubicConicIntersection(pts, wt, wn, ts); in AddIntersectTs()
494 pts = ts.intersect(cubic1.set(wt.pts()), cubic2.set(wn.pts())); in AddIntersectTs()
495 debugShowCubicIntersection(pts, wt, wn, ts); in AddIntersectTs()
506 test->globalState()->debugAddLoopCount(&ts, wt, wn); in AddIntersectTs()
513 wt.segment()->debugValidate(); in AddIntersectTs()
520 SkOpPtT* testTAt = iPtIsIntegral ? wt.segment()->addT(ts[swap][pt], iPt) in AddIntersectTs()
521 : wt.segment()->addT(ts[swap][pt]); in AddIntersectTs()
535 wt.segment()->debugValidate(); in AddIntersectTs()
571 wt.segment()->debugValidate(); in AddIntersectTs()
577 } while (wt.advance()); in AddIntersectTs()