Home | History | Annotate | Download | only in Intersection

Lines Matching full:prev

434 static inline void swap_edges(SkAntiEdge* prev, SkAntiEdge* next) {
435 SkASSERT(prev->fNext == next && next->fPrev == prev);
437 // remove prev from the list
438 prev->fPrev->fNext = next;
439 next->fPrev = prev->fPrev;
441 // insert prev after next
442 prev->fNext = next->fNext;
443 next->fNext->fPrev = prev;
444 next->fNext = prev;
445 prev->fPrev = next;
452 SkAntiEdge* prev = edge->fPrev;
456 SkASSERT(prev && SkFixedFloor(prev->fWalkY - prev->fDXFlipped) <= y + 1);
458 if (prev->fFirstX <= x) {
461 swap_edges(prev, edge);
505 SkAntiEdge* prev = fEdges.begin();
507 for (active = prev + 1; active != tail; ++active) {
508 prev->fWinding == active->fWinding) {
509 if (prev->fLastX == active->fFirstX && prev->fLastY == active->fFirstY) {
510 prev->fLink = active;
512 } else if (active->fLastX == prev->fFirstX && active->fLastY == prev->fFirstY) {
513 active->fLink = prev;
514 prev->fLinkSet = true;
517 prev = active;
520 prev = fEdges.begin() - 1;
523 if (++prev == tail) {
526 } while (prev->fLinkSet || NULL != prev->fLink);
527 for (active = prev + 1; active != tail; ++active) {
531 if (prev->fWinding != active->fWinding) {
534 if (prev->fLastX == active->fFirstX && prev->fLastY == active->fFirstY) {
535 prev->fLink = active;
539 if (active->fLastX == prev->fFirstX && active->fLastY == prev->fFirstY) {
540 active->fLink = prev;
541 prev->fLinkSet = true;
700 SkAntiEdge* prev = activeLast->fPrev;
701 if (prev != &fHeadEdge) {
702 insert_new_edges(prev, top);