Lines Matching refs:currEdge
393 OffsetEdge* currEdge = head; in SkInsetConvexPolygon() local
394 OffsetEdge* prevEdge = currEdge->fPrev; in SkInsetConvexPolygon()
398 while (head && prevEdge != currEdge) { in SkInsetConvexPolygon()
407 if (compute_intersection(prevEdge->fOffset, currEdge->fOffset, in SkInsetConvexPolygon()
417 } else if (currEdge->fTValue > SK_ScalarMin && in SkInsetConvexPolygon()
419 currEdge->fIntersection, in SkInsetConvexPolygon()
424 currEdge->fIntersection = intersection; in SkInsetConvexPolygon()
425 currEdge->fTValue = t; in SkInsetConvexPolygon()
428 prevEdge = currEdge; in SkInsetConvexPolygon()
429 currEdge = currEdge->fNext; in SkInsetConvexPolygon()
433 int side = winding*compute_side(currEdge->fOffset.fP0, in SkInsetConvexPolygon()
434 currEdge->fOffset.fV, in SkInsetConvexPolygon()
437 side == winding*compute_side(currEdge->fOffset.fP0, in SkInsetConvexPolygon()
438 currEdge->fOffset.fV, in SkInsetConvexPolygon()
447 remove_node(currEdge, &head); in SkInsetConvexPolygon()
449 currEdge = currEdge->fNext; in SkInsetConvexPolygon()
467 currEdge = head->fNext; in SkInsetConvexPolygon()
468 while (currEdge != head) { in SkInsetConvexPolygon()
469 if (!SkPointPriv::EqualsWithinTolerance(currEdge->fIntersection, in SkInsetConvexPolygon()
472 *insetPolygon->append() = currEdge->fIntersection; in SkInsetConvexPolygon()
475 currEdge = currEdge->fNext; in SkInsetConvexPolygon()
1178 static void setup_offset_edge(OffsetEdge* currEdge, in setup_offset_edge() argument
1181 currEdge->fOffset.fP0 = endpoint0; in setup_offset_edge()
1182 currEdge->fOffset.fV = endpoint1 - endpoint0; in setup_offset_edge()
1183 currEdge->init(startIndex, endIndex); in setup_offset_edge()
1298 auto currEdge = edgeData.push_back_n(std::max(numSteps, 1)); in SkOffsetSimplePolygon() local
1302 setup_offset_edge(currEdge, in SkOffsetSimplePolygon()
1307 currEdge->fPrev = prevEdge; in SkOffsetSimplePolygon()
1309 prevEdge->fNext = currEdge; in SkOffsetSimplePolygon()
1311 prevEdge = currEdge; in SkOffsetSimplePolygon()
1312 ++currEdge; in SkOffsetSimplePolygon()
1314 setup_offset_edge(currEdge, in SkOffsetSimplePolygon()
1318 currEdge->fPrev = prevEdge; in SkOffsetSimplePolygon()
1320 prevEdge->fNext = currEdge; in SkOffsetSimplePolygon()
1322 prevEdge = currEdge; in SkOffsetSimplePolygon()
1326 auto currEdge = edgeData.push_back_n(1); in SkOffsetSimplePolygon() local
1327 setup_offset_edge(currEdge, in SkOffsetSimplePolygon()
1331 currEdge->fPrev = prevEdge; in SkOffsetSimplePolygon()
1333 prevEdge->fNext = currEdge; in SkOffsetSimplePolygon()
1335 prevEdge = currEdge; in SkOffsetSimplePolygon()
1345 auto currEdge = head; in SkOffsetSimplePolygon() local
1349 while (head && prevEdge != currEdge && offsetVertexCount > 0) { in SkOffsetSimplePolygon()
1358 if (prevEdge->checkIntersection(currEdge, &intersection, &s, &t)) { in SkOffsetSimplePolygon()
1367 } else if (currEdge->fTValue > SK_ScalarMin && in SkOffsetSimplePolygon()
1369 currEdge->fIntersection, in SkOffsetSimplePolygon()
1374 currEdge->fIntersection = intersection; in SkOffsetSimplePolygon()
1375 currEdge->fTValue = t; in SkOffsetSimplePolygon()
1376 currEdge->fIndex = prevEdge->fEnd; in SkOffsetSimplePolygon()
1379 prevEdge = currEdge; in SkOffsetSimplePolygon()
1380 currEdge = currEdge->fNext; in SkOffsetSimplePolygon()
1386 OffsetEdge* currNextEdge = currEdge->fNext; in SkOffsetSimplePolygon()
1387 SkScalar dist0 = currEdge->computeCrossingDistance(prevPrevEdge); in SkOffsetSimplePolygon()
1395 p1 = currEdge->fOffset.fP0 + currEdge->fOffset.fV; in SkOffsetSimplePolygon()
1401 remove_node(currEdge, &head); in SkOffsetSimplePolygon()
1402 currEdge = currNextEdge; in SkOffsetSimplePolygon()
1418 remove_node(currEdge, &head); in SkOffsetSimplePolygon()
1419 currEdge = currNextEdge; in SkOffsetSimplePolygon()
1440 currEdge = head->fNext; in SkOffsetSimplePolygon()
1441 while (currEdge != head) { in SkOffsetSimplePolygon()
1442 if (!SkPointPriv::EqualsWithinTolerance(currEdge->fIntersection, in SkOffsetSimplePolygon()
1445 *offsetPolygon->append() = currEdge->fIntersection; in SkOffsetSimplePolygon()
1447 *polygonIndices->append() = currEdge->fIndex; in SkOffsetSimplePolygon()
1451 currEdge = currEdge->fNext; in SkOffsetSimplePolygon()