• Home
  • Raw
  • Download

Lines Matching refs:SkRegion

33     s.clipDevPath(p, SkRegion::kIntersect_Op, doAA);  in test_assign_and_comparison()
39 s.clipDevRect(r, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
41 s.clipDevRect(r, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
47 s.clipDevRect(r, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
62 s.clipDevRect(r, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
71 s.clipDevRect(r, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
79 s.clipDevPath(rp, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
89 s.clipDevRect(r, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
112 s.clipDevPath(p, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
140 stack.clipDevRect(gRects[i], SkRegion::kUnion_Op, false); in test_iterators()
181 element = iter.skipToTopmost(SkRegion::kUnion_Op); in test_iterators()
220 static const SkRegion::Op gOps[] = { in test_bounds()
221 SkRegion::kIntersect_Op, in test_bounds()
222 SkRegion::kDifference_Op, in test_bounds()
223 SkRegion::kUnion_Op, in test_bounds()
224 SkRegion::kXOR_Op, in test_bounds()
225 SkRegion::kReverseDifference_Op in test_bounds()
265 stack.clipDevRect(rectA, SkRegion::kIntersect_Op, false); in test_bounds()
269 stack.clipDevRRect(rrectA, SkRegion::kIntersect_Op, false); in test_bounds()
273 stack.clipDevPath(pathA, SkRegion::kIntersect_Op, false); in test_bounds()
286 (gOps[op] == SkRegion::kIntersect_Op)); in test_bounds()
334 stack.clipDevPath(clipA, SkRegion::kReplace_Op, false); in test_isWideOpen()
335 stack.clipDevPath(clipB, SkRegion::kUnion_Op, false); in test_isWideOpen()
345 stack.clipDevRect(rectA, SkRegion::kUnion_Op, false); in test_isWideOpen()
358 stack.clipDevRect(emptyRect, SkRegion::kDifference_Op, false); in test_isWideOpen()
370 stack.clipDevRect(rectA, SkRegion::kReplace_Op, false); in test_isWideOpen()
404 stack.clipDevPath(path, SkRegion::kIntersect_Op, false); in test_rect_inverse_fill()
426 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
428 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
437 stack.clipDevRect(rect, SkRegion::kReplace_Op, true); in test_rect_replace()
439 stack.clipDevRect(rect, SkRegion::kReplace_Op, true); in test_rect_replace()
448 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
450 stack.clipDevRect(rect, SkRegion::kReplace_Op, true); in test_rect_replace()
452 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
459 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
460 stack.clipDevRect(rect2, SkRegion::kIntersect_Op, false); in test_rect_replace()
464 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
472 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
473 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
479 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
480 stack.clipDevRect(rect2, SkRegion::kIntersect_Op, false); in test_rect_replace()
481 stack.clipDevRect(rect, SkRegion::kReplace_Op, false); in test_rect_replace()
498 stack.clipDevPath(path, SkRegion::kReplace_Op, false); in test_path_replace()
500 stack.clipDevPath(path, SkRegion::kReplace_Op, false); in test_path_replace()
507 stack.clipDevRect(rect, SkRegion::kReplace_Op, true); in test_path_replace()
509 stack.clipDevPath(path, SkRegion::kReplace_Op, true); in test_path_replace()
532 stack.clipDevRect(overlapLeft, SkRegion::kReplace_Op, false); in test_rect_merging()
534 stack.clipDevRect(overlapRight, SkRegion::kIntersect_Op, false); in test_rect_merging()
547 stack.clipDevRect(overlapLeft, SkRegion::kReplace_Op, true); in test_rect_merging()
549 stack.clipDevRect(overlapRight, SkRegion::kIntersect_Op, true); in test_rect_merging()
562 stack.clipDevRect(overlapLeft, SkRegion::kReplace_Op, true); in test_rect_merging()
564 stack.clipDevRect(overlapRight, SkRegion::kIntersect_Op, false); in test_rect_merging()
577 stack.clipDevRect(nestedParent, SkRegion::kReplace_Op, true); in test_rect_merging()
579 stack.clipDevRect(nestedChild, SkRegion::kIntersect_Op, false); in test_rect_merging()
592 stack.clipDevRect(nestedParent, SkRegion::kReplace_Op, false); in test_rect_merging()
594 stack.clipDevRect(nestedChild, SkRegion::kIntersect_Op, true); in test_rect_merging()
607 stack.clipDevRect(nestedChild, SkRegion::kReplace_Op, false); in test_rect_merging()
609 stack.clipDevRect(nestedParent, SkRegion::kIntersect_Op, true); in test_rect_merging()
637 stack.clipDevRect(outsideRect, SkRegion::kDifference_Op, false); in test_quickContains()
645 stack.clipDevRect(outsideRect, SkRegion::kReplace_Op, false); in test_quickContains()
651 stack.clipDevRect(insideRect, SkRegion::kIntersect_Op, false); in test_quickContains()
653 stack.clipDevRect(outsideRect, SkRegion::kReplace_Op, false); in test_quickContains()
660 stack.clipDevRect(outsideRect, SkRegion::kIntersect_Op, false); in test_quickContains()
662 stack.clipDevRect(insideRect, SkRegion::kReplace_Op, false); in test_quickContains()
670 stack.clipDevRect(insideRect, SkRegion::kIntersect_Op, false); in test_quickContains()
672 stack.clipDevPath(outsideCircle, SkRegion::kIntersect_Op, false); in test_quickContains()
679 stack.clipDevRect(outsideRect, SkRegion::kIntersect_Op, false); in test_quickContains()
685 stack.clipDevRect(insideRect, SkRegion::kIntersect_Op, false); in test_quickContains()
691 stack.clipDevRect(intersectingRect, SkRegion::kIntersect_Op, false); in test_quickContains()
697 stack.clipDevRect(nonIntersectingRect, SkRegion::kIntersect_Op, false); in test_quickContains()
704 stack.clipDevPath(outsideCircle, SkRegion::kIntersect_Op, false); in test_quickContains()
710 stack.clipDevPath(insideCircle, SkRegion::kIntersect_Op, false); in test_quickContains()
716 stack.clipDevPath(intersectingCircle, SkRegion::kIntersect_Op, false); in test_quickContains()
722 stack.clipDevPath(nonIntersectingCircle, SkRegion::kIntersect_Op, false); in test_quickContains()
732 stack.clipDevPath(path, SkRegion::kIntersect_Op, false); in test_quickContains()
741 stack.clipDevPath(path, SkRegion::kIntersect_Op, false); in test_quickContains()
750 stack.clipDevPath(path, SkRegion::kIntersect_Op, false); in test_quickContains()
759 stack.clipDevPath(path, SkRegion::kIntersect_Op, false); in test_quickContains()
768 stack.clipDevPath(path, SkRegion::kIntersect_Op, false); in test_quickContains()
776 stack.clipDevPath(path, SkRegion::kIntersect_Op, false); in test_quickContains()
784 stack.clipDevPath(path, SkRegion::kIntersect_Op, false); in test_quickContains()
792 stack.clipDevPath(path, SkRegion::kIntersect_Op, false); in test_quickContains()
806 SkRegion::Op op,
809 static void add_round_rect(const SkRect& rect, bool invert, SkRegion::Op op, SkClipStack* stack) { in add_round_rect()
824 static void add_rect(const SkRect& rect, bool invert, SkRegion::Op op, SkClipStack* stack) { in add_rect()
835 static void add_oval(const SkRect& rect, bool invert, SkRegion::Op op, SkClipStack* stack) { in add_oval()
864 SkRegion* region) { in add_elem_to_region()
865 SkRegion elemRegion; in add_elem_to_region()
866 SkRegion boundsRgn(bounds); in add_elem_to_region()
898 static const SkRegion::Op kOps[] = { in test_reduced_clip_stack()
899 SkRegion::kDifference_Op, in test_reduced_clip_stack()
900 SkRegion::kIntersect_Op, in test_reduced_clip_stack()
901 SkRegion::kUnion_Op, in test_reduced_clip_stack()
902 SkRegion::kXOR_Op, in test_reduced_clip_stack()
903 SkRegion::kReverseDifference_Op, in test_reduced_clip_stack()
904 SkRegion::kReplace_Op, in test_reduced_clip_stack()
928 SkRegion::Op op = kOps[r.nextULessThan(SK_ARRAY_COUNT(kOps))]; in test_reduced_clip_stack()
929 if (op == SkRegion::kReplace_Op) { in test_reduced_clip_stack()
989 reducedStack.clipDevRect(*tightBounds, SkRegion::kIntersect_Op); in test_reduced_clip_stack()
993 SkRegion region; in test_reduced_clip_stack()
994 SkRegion reducedRegion; in test_reduced_clip_stack()
1023 stack.clipDevRect(SkRect::MakeXYWH(0, 0, 100, 100), SkRegion::kReplace_Op, true); in test_reduced_clip_stack_genid()
1024 …stack.clipDevRect(SkRect::MakeXYWH(0, 0, SkScalar(50.3), SkScalar(50.3)), SkRegion::kReplace_Op, t… in test_reduced_clip_stack_genid()
1050 …stack.clipDevRect(SkRect::MakeXYWH(0, 0, SkScalar(25.3), SkScalar(25.3)), SkRegion::kReplace_Op, t… in test_reduced_clip_stack_genid()
1052 …stack.clipDevRect(SkRect::MakeXYWH(50, 0, SkScalar(25.3), SkScalar(25.3)), SkRegion::kUnion_Op, tr… in test_reduced_clip_stack_genid()
1054 …stack.clipDevRect(SkRect::MakeXYWH(0, 50, SkScalar(25.3), SkScalar(25.3)), SkRegion::kUnion_Op, tr… in test_reduced_clip_stack_genid()
1056 …stack.clipDevRect(SkRect::MakeXYWH(50, 50, SkScalar(25.3), SkScalar(25.3)), SkRegion::kUnion_Op, t… in test_reduced_clip_stack_genid()
1150 stack.clipDevRect(SkIRect::MakeXYWH(0, 0, 100, 100), SkRegion::kReplace_Op); in test_reduced_clip_stack_no_aa_crash()
1151 stack.clipDevRect(SkIRect::MakeXYWH(0, 0, 50, 50), SkRegion::kReplace_Op); in test_reduced_clip_stack_no_aa_crash()
1185 stack.clipDevRect(gRects[i], SkRegion::kIntersect_Op); in DEF_TEST()
1196 REPORTER_ASSERT(reporter, SkRegion::kIntersect_Op == element->getOp()); in DEF_TEST()