Lines Matching refs:SkClipStack
27 SkClipStack s; in test_assign_and_comparison()
58 SkClipStack copy = s; in test_assign_and_comparison()
124 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count()
126 SkClipStack::B2TIter iter(stack); in assert_count()
137 SkClipStack stack; in test_iterators()
155 const SkClipStack::Element* element = nullptr; in test_iterators()
157 SkClipStack::B2TIter iter(stack); in test_iterators()
161 REPORTER_ASSERT(reporter, SkClipStack::Element::kRect_Type == element->getType()); in test_iterators()
170 const SkClipStack::Element* element = nullptr; in test_iterators()
172 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in test_iterators()
176 REPORTER_ASSERT(reporter, SkClipStack::Element::kRect_Type == element->getType()); in test_iterators()
185 const SkClipStack::Element* element = nullptr; in test_iterators()
187 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in test_iterators()
190 REPORTER_ASSERT(reporter, SkClipStack::Element::kRect_Type == element->getType()); in test_iterators()
196 static void test_bounds(skiatest::Reporter* reporter, SkClipStack::Element::Type primType) { in test_bounds()
250 SkClipStack stack; in test_bounds()
255 int numBitTests = SkClipStack::Element::kPath_Type == primType ? 4 : 1; in test_bounds()
269 case SkClipStack::Element::kEmpty_Type: in test_bounds()
272 case SkClipStack::Element::kRect_Type: in test_bounds()
276 case SkClipStack::Element::kRRect_Type: in test_bounds()
280 case SkClipStack::Element::kPath_Type: in test_bounds()
287 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID != stack.getTopmostGenID()); in test_bounds()
292 if (SkClipStack::Element::kRect_Type == primType) { in test_bounds()
312 SkClipStack stack; in test_isWideOpen()
314 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
324 SkClipStack stack; in test_isWideOpen()
327 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
332 SkClipStack stack; in test_isWideOpen()
346 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
351 SkClipStack stack; in test_isWideOpen()
356 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
361 SkClipStack stack; in test_isWideOpen()
369 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
374 SkClipStack stack; in test_isWideOpen()
381 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID != stack.getTopmostGenID()); in test_isWideOpen()
386 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
390 static int count(const SkClipStack& stack) { in count()
392 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in count()
394 const SkClipStack::Element* element = nullptr; in count()
411 SkClipStack stack; in test_rect_inverse_fill()
415 SkClipStack::BoundsType boundsType; in test_rect_inverse_fill()
417 REPORTER_ASSERT(reporter, SkClipStack::kInsideOut_BoundsType == boundsType); in test_rect_inverse_fill()
426 SkClipStack::BoundsType type; in test_rect_replace()
432 SkClipStack stack; in test_rect_replace()
443 SkClipStack stack; in test_rect_replace()
454 SkClipStack stack; in test_rect_replace()
466 SkClipStack stack; in test_rect_replace()
504 SkClipStack stack; in test_path_replace()
514 SkClipStack stack; in test_path_replace()
533 SkClipStack::BoundsType type; in test_rect_merging()
538 SkClipStack stack; in test_rect_merging()
553 SkClipStack stack; in test_rect_merging()
568 SkClipStack stack; in test_rect_merging()
583 SkClipStack stack; in test_rect_merging()
598 SkClipStack stack; in test_rect_merging()
613 SkClipStack stack; in test_rect_merging()
644 SkClipStack stack; in test_quickContains()
652 SkClipStack stack; in test_quickContains()
658 SkClipStack stack; in test_quickContains()
667 SkClipStack stack; in test_quickContains()
677 SkClipStack stack; in test_quickContains()
686 SkClipStack stack; in test_quickContains()
692 SkClipStack stack; in test_quickContains()
698 SkClipStack stack; in test_quickContains()
704 SkClipStack stack; in test_quickContains()
711 SkClipStack stack; in test_quickContains()
717 SkClipStack stack; in test_quickContains()
723 SkClipStack stack; in test_quickContains()
729 SkClipStack stack; in test_quickContains()
736 SkClipStack stack; in test_quickContains()
745 SkClipStack stack; in test_quickContains()
754 SkClipStack stack; in test_quickContains()
763 SkClipStack stack; in test_quickContains()
773 SkClipStack stack; in test_quickContains()
781 SkClipStack stack; in test_quickContains()
789 SkClipStack stack; in test_quickContains()
797 SkClipStack stack; in test_quickContains()
805 static void set_region_to_stack(const SkClipStack& stack, const SkIRect& bounds, SkRegion* region) { in set_region_to_stack()
807 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in set_region_to_stack()
808 while (const SkClipStack::Element *element = iter.next()) { in set_region_to_stack()
814 case SkClipStack::Element::kEmpty_Type: in set_region_to_stack()
827 SkClipStack stack; in test_invfill_diff_bug()
835 REPORTER_ASSERT(reporter, SkClipStack::kEmptyGenID == stack.getTopmostGenID()); in test_invfill_diff_bug()
838 SkClipStack::BoundsType stackBoundsType; in test_invfill_diff_bug()
842 REPORTER_ASSERT(reporter, SkClipStack::kNormal_BoundsType == stackBoundsType); in test_invfill_diff_bug()
860 SkClipStack* stack,
863 static void add_round_rect(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_round_rect()
879 static void add_rect(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_rect()
891 static void add_oval(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_oval()
901 static void add_elem_to_stack(const SkClipStack::Element& element, SkClipStack* stack) { in add_elem_to_stack()
903 case SkClipStack::Element::kRect_Type: in add_elem_to_stack()
906 case SkClipStack::Element::kRRect_Type: in add_elem_to_stack()
909 case SkClipStack::Element::kPath_Type: in add_elem_to_stack()
912 case SkClipStack::Element::kEmpty_Type: in add_elem_to_stack()
969 SkClipStack stack; in test_reduced_clip_stack()
1019 GR_STATIC_ASSERT(0 == SkClipStack::kInvalidGenID); in test_reduced_clip_stack()
1028 SkClipStack::kInvalidGenID != reduced->elementsGenID(), in test_reduced_clip_stack()
1034 SkClipStack::BoundsType stackBoundsType; in test_reduced_clip_stack()
1036 if (SkClipStack::kNormal_BoundsType == stackBoundsType) { in test_reduced_clip_stack()
1047 SkClipStack reducedStack; in test_reduced_clip_stack()
1083 SkClipStack stack; in test_reduced_clip_stack_genid()
1092 GR_STATIC_ASSERT(0 == SkClipStack::kInvalidGenID); in test_reduced_clip_stack_genid()
1097 REPORTER_ASSERT(reporter, SkClipStack::kInvalidGenID != reduced->elementsGenID()); in test_reduced_clip_stack_genid()
1102 SkClipStack stack; in test_reduced_clip_stack_genid()
1145 …{ XYWH(0, 0, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(0,… in test_reduced_clip_stack_genid()
1146 …{ XYWH(0.1f, 0.1f, 25.1f, 25.1f), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAll… in test_reduced_clip_stack_genid()
1150 …{ XYWH(50, 0, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(5… in test_reduced_clip_stack_genid()
1151 …{ XYWH(50, 0, 25.3f, 25.3f), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, I… in test_reduced_clip_stack_genid()
1155 …{ XYWH(0, 50, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(0… in test_reduced_clip_stack_genid()
1156 …{ XYWH(0.2f, 50.1f, 25.1f, 25.2f), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAl… in test_reduced_clip_stack_genid()
1160 …{ XYWH(50, 50, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(… in test_reduced_clip_stack_genid()
1161 …{ XYWH(50.3f, 50.3f, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, … in test_reduced_clip_stack_genid()
1168 …{ XYWH(26, 26, 24, 24), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllOut, IXYWH… in test_reduced_clip_stack_genid()
1196 SkClipStack stack; in test_reduced_clip_stack_no_aa_crash()
1214 const SkClipStack& stack, const SkMatrix& queryXform, in test_aa_query()
1221 SkClipStack::BoundsType stackBoundsType; in test_aa_query()
1245 SkASSERT(SkClipStack::kNormal_BoundsType == stackBoundsType); in test_aa_query()
1260 if (SkClipStack::kNormal_BoundsType == stackBoundsType) { in test_aa_query()
1297 SkClipStack stack; in test_reduced_clip_stack_aa()
1365 SkClipStack rectStack; in test_tiny_query_bounds_assertion_bug()
1374 SkClipStack pathStack; in test_tiny_query_bounds_assertion_bug()
1377 for (const SkClipStack& stack : {rectStack, pathStack}) { in test_tiny_query_bounds_assertion_bug()
1394 SkClipStack stack; in DEF_TEST()
1410 SkClipStack::B2TIter iter(stack); in DEF_TEST()
1411 const SkClipStack::Element* element = iter.next(); in DEF_TEST()
1416 REPORTER_ASSERT(reporter, SkClipStack::Element::kRect_Type == element->getType()); in DEF_TEST()
1428 test_bounds(reporter, SkClipStack::Element::kRect_Type); in DEF_TEST()
1429 test_bounds(reporter, SkClipStack::Element::kRRect_Type); in DEF_TEST()
1430 test_bounds(reporter, SkClipStack::Element::kPath_Type); in DEF_TEST()
1460 SkClipStack stack; in DEF_GPUTEST_FOR_ALL_CONTEXTS()