Lines Matching refs:SkRegion
85 visitor->clipRect(kEmptyRect, SkRegion::kIntersect_Op, false); in replay()
113 void SkClipStack::Element::initPath(int saveCount, const SkPath& path, SkRegion::Op op, in initPath()
174 bool SkClipStack::Element::canBeIntersectedInPlace(int saveCount, SkRegion::Op op) const { in canBeIntersectedInPlace()
176 (SkRegion::kDifference_Op == op || SkRegion::kIntersect_Op == op)) { in canBeIntersectedInPlace()
182 SkRegion::kIntersect_Op == op && in canBeIntersectedInPlace()
183 (SkRegion::kIntersect_Op == fOp || SkRegion::kReplace_Op == fOp); in canBeIntersectedInPlace()
397 if (SkRegion::kReplace_Op == fOp || in updateBoundAndGenID()
398 (SkRegion::kIntersect_Op == fOp && NULL == prior) || in updateBoundAndGenID()
399 (SkRegion::kIntersect_Op == fOp && prior->fIsIntersectionOfRects && in updateBoundAndGenID()
458 case SkRegion::kDifference_Op: in updateBoundAndGenID()
461 case SkRegion::kXOR_Op: in updateBoundAndGenID()
464 case SkRegion::kUnion_Op: in updateBoundAndGenID()
467 case SkRegion::kIntersect_Op: in updateBoundAndGenID()
470 case SkRegion::kReverseDifference_Op: in updateBoundAndGenID()
473 case SkRegion::kReplace_Op: in updateBoundAndGenID()
505 this->clipDevRect(r, SkRegion::kReplace_Op, false); in SkClipStack()
515 this->clipDevRect(temp, SkRegion::kReplace_Op, false); in SkClipStack()
624 … if (SkRegion::kIntersect_Op != element->getOp() && SkRegion::kReplace_Op != element->getOp()) in quickContains()
636 if (SkRegion::kReplace_Op == element->getOp()) { in quickContains()
657 SkRegion::Op elementOp = element->getOp(); in asPath()
658 if (elementOp == SkRegion::kReplace_Op) { in asPath()
709 } else if (SkRegion::kReplace_Op == element.getOp()) { in pushElement()
718 void SkClipStack::clipDevRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA) { in clipDevRRect()
723 void SkClipStack::clipDevRect(const SkRect& rect, SkRegion::Op op, bool doAA) { in clipDevRect()
728 void SkClipStack::clipDevPath(const SkPath& path, SkRegion::Op op, bool doAA) { in clipDevPath()
736 if (element && element->canBeIntersectedInPlace(fSaveCount, SkRegion::kIntersect_Op)) { in clipEmpty()
766 const SkClipStack::Element* SkClipStack::Iter::skipToTopmost(SkRegion::Op op) { in skipToTopmost()
879 SK_COMPILE_ASSERT(0 == SkRegion::kDifference_Op, op_str); in dump()
880 SK_COMPILE_ASSERT(1 == SkRegion::kIntersect_Op, op_str); in dump()
881 SK_COMPILE_ASSERT(2 == SkRegion::kUnion_Op, op_str); in dump()
882 SK_COMPILE_ASSERT(3 == SkRegion::kXOR_Op, op_str); in dump()
883 SK_COMPILE_ASSERT(4 == SkRegion::kReverseDifference_Op, op_str); in dump()
884 SK_COMPILE_ASSERT(5 == SkRegion::kReplace_Op, op_str); in dump()
885 SK_COMPILE_ASSERT(SK_ARRAY_COUNT(kOpStrings) == SkRegion::kOpCnt, op_str); in dump()