• Home
  • Raw
  • Download

Lines Matching refs:wt

13 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt,  in debugShowLineIntersection()  argument
18 __FUNCTION__, LINE_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowLineIntersection()
22 i[0][0], LINE_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowLineIntersection()
33 static void debugShowQuadLineIntersection(int pts, const SkIntersectionHelper& wt, in debugShowQuadLineIntersection() argument
39 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowQuadLineIntersection()
43 i[0][0], QUAD_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowQuadLineIntersection()
54 static void debugShowQuadIntersection(int pts, const SkIntersectionHelper& wt, in debugShowQuadIntersection() argument
59 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts())); in debugShowQuadIntersection()
63 i[0][0], QUAD_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowQuadIntersection()
74 static void debugShowConicLineIntersection(int pts, const SkIntersectionHelper& wt, in debugShowConicLineIntersection() argument
79 __FUNCTION__, CONIC_DEBUG_DATA(wt.pts(), wt.weight()), LINE_DEBUG_DATA(wn.pts())); in debugShowConicLineIntersection()
83 i[0][0], CONIC_DEBUG_DATA(wt.pts(), wt.weight()), PT_DEBUG_DATA(i, 0)); in debugShowConicLineIntersection()
94 static void debugShowConicQuadIntersection(int pts, const SkIntersectionHelper& wt, in debugShowConicQuadIntersection() argument
99 __FUNCTION__, CONIC_DEBUG_DATA(wt.pts(), wt.weight()), QUAD_DEBUG_DATA(wn.pts())); in debugShowConicQuadIntersection()
103 i[0][0], CONIC_DEBUG_DATA(wt.pts(), wt.weight()), PT_DEBUG_DATA(i, 0)); in debugShowConicQuadIntersection()
114 static void debugShowConicIntersection(int pts, const SkIntersectionHelper& wt, in debugShowConicIntersection() argument
119 __FUNCTION__, CONIC_DEBUG_DATA(wt.pts(), wt.weight()), in debugShowConicIntersection()
124 i[0][0], CONIC_DEBUG_DATA(wt.pts(), wt.weight()), PT_DEBUG_DATA(i, 0)); in debugShowConicIntersection()
135 static void debugShowCubicLineIntersection(int pts, const SkIntersectionHelper& wt, in debugShowCubicLineIntersection() argument
140 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowCubicLineIntersection()
144 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicLineIntersection()
155 static void debugShowCubicQuadIntersection(int pts, const SkIntersectionHelper& wt, in debugShowCubicQuadIntersection() argument
160 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts())); in debugShowCubicQuadIntersection()
164 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicQuadIntersection()
175 static void debugShowCubicConicIntersection(int pts, const SkIntersectionHelper& wt, in debugShowCubicConicIntersection() argument
180 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), CONIC_DEBUG_DATA(wn.pts(), wn.weight())); in debugShowCubicConicIntersection()
184 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicConicIntersection()
195 static void debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt, in debugShowCubicIntersection() argument
200 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), CUBIC_DEBUG_DATA(wn.pts())); in debugShowCubicIntersection()
204 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicIntersection()
268 SkIntersectionHelper wt; in AddIntersectTs() local
269 wt.init(test); in AddIntersectTs()
275 if (test == next && !wn.startAfter(wt)) { in AddIntersectTs()
279 if (!SkPathOpsBounds::Intersects(wt.bounds(), wn.bounds())) { in AddIntersectTs()
288 switch (wt.segmentType()) { in AddIntersectTs()
295 pts = ts.lineHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
296 wt.right(), wt.y(), wt.xFlipped()); in AddIntersectTs()
297 debugShowLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
300 pts = ts.quadHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
301 wt.right(), wt.y(), wt.xFlipped()); in AddIntersectTs()
302 debugShowQuadLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
305 pts = ts.conicHorizontal(wn.pts(), wn.weight(), wt.left(), in AddIntersectTs()
306 wt.right(), wt.y(), wt.xFlipped()); in AddIntersectTs()
307 debugShowConicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
310 pts = ts.cubicHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
311 wt.right(), wt.y(), wt.xFlipped()); in AddIntersectTs()
312 debugShowCubicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
324 pts = ts.lineVertical(wn.pts(), wt.top(), in AddIntersectTs()
325 wt.bottom(), wt.x(), wt.yFlipped()); in AddIntersectTs()
326 debugShowLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
330 pts = ts.quadVertical(wn.pts(), wt.top(), in AddIntersectTs()
331 wt.bottom(), wt.x(), wt.yFlipped()); in AddIntersectTs()
332 debugShowQuadLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
336 pts = ts.conicVertical(wn.pts(), wn.weight(), wt.top(), in AddIntersectTs()
337 wt.bottom(), wt.x(), wt.yFlipped()); in AddIntersectTs()
338 debugShowConicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
342 pts = ts.cubicVertical(wn.pts(), wt.top(), in AddIntersectTs()
343 wt.bottom(), wt.x(), wt.yFlipped()); in AddIntersectTs()
344 debugShowCubicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
354 pts = ts.lineHorizontal(wt.pts(), wn.left(), in AddIntersectTs()
356 debugShowLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
359 pts = ts.lineVertical(wt.pts(), wn.top(), 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()
389 pts = ts.quadHorizontal(wt.pts(), wn.left(), in AddIntersectTs()
391 debugShowQuadLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
394 pts = ts.quadVertical(wt.pts(), wn.top(), 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()
410 quad1.set(wt.pts())); 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()
427 pts = ts.conicHorizontal(wt.pts(), wt.weight(), wn.left(), in AddIntersectTs()
429 debugShowConicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
432 pts = ts.conicVertical(wt.pts(), wt.weight(), wn.top(), 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()
441 pts = ts.intersect(conic1.set(wt.pts(), wt.weight()), in AddIntersectTs()
443 debugShowConicQuadIntersection(pts, wt, wn, ts); in AddIntersectTs()
447 pts = ts.intersect(conic1.set(wt.pts(), wt.weight()), in AddIntersectTs()
449 debugShowConicIntersection(pts, wt, wn, ts); in AddIntersectTs()
455 conic1.set(wt.pts(), wt.weight())); in AddIntersectTs()
456 debugShowCubicConicIntersection(pts, wn, wt, ts); in AddIntersectTs()
464 pts = ts.cubicHorizontal(wt.pts(), wn.left(), in AddIntersectTs()
466 debugShowCubicLineIntersection(pts, wt, wn, ts); in AddIntersectTs()
469 pts = ts.cubicVertical(wt.pts(), wn.top(), 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()
483 pts = ts.intersect(cubic1.set(wt.pts()), 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()
501 test->globalState()->debugAddLoopCount(&ts, wt, wn); in AddIntersectTs()
508 wt.segment()->debugValidate(); in AddIntersectTs()
509 SkOpPtT* testTAt = wt.segment()->addT(ts[swap][pt], SkOpSegment::kAllowAlias, in AddIntersectTs()
519 wt.segment()->debugValidate(); in AddIntersectTs()
544 wt.segment()->debugValidate(); in AddIntersectTs()
550 } while (wt.advance()); in AddIntersectTs()