Lines Matching refs:SkClipStack
51 SkClipStack s; in test_assign_and_comparison()
82 SkClipStack copy = s; in test_assign_and_comparison()
148 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count()
150 SkClipStack::B2TIter iter(stack); in assert_count()
161 SkClipStack stack; in test_iterators()
179 const SkClipStack::Element* element = nullptr; in test_iterators()
181 SkClipStack::B2TIter iter(stack); in test_iterators()
185 REPORTER_ASSERT(reporter, SkClipStack::Element::DeviceSpaceType::kRect == in test_iterators()
195 const SkClipStack::Element* element = nullptr; in test_iterators()
197 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in test_iterators()
201 REPORTER_ASSERT(reporter, SkClipStack::Element::DeviceSpaceType::kRect == in test_iterators()
211 const SkClipStack::Element* element = nullptr; in test_iterators()
213 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in test_iterators()
216 REPORTER_ASSERT(reporter, SkClipStack::Element::DeviceSpaceType::kRect == in test_iterators()
224 SkClipStack::Element::DeviceSpaceType primType) { in test_bounds()
278 SkClipStack stack; in test_bounds()
283 int numBitTests = SkClipStack::Element::DeviceSpaceType::kPath == primType ? 4 : 1; in test_bounds()
297 case SkClipStack::Element::DeviceSpaceType::kEmpty: in test_bounds()
300 case SkClipStack::Element::DeviceSpaceType::kRect: in test_bounds()
304 case SkClipStack::Element::DeviceSpaceType::kRRect: in test_bounds()
308 case SkClipStack::Element::DeviceSpaceType::kPath: in test_bounds()
315 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID != stack.getTopmostGenID()); in test_bounds()
320 if (SkClipStack::Element::DeviceSpaceType::kRect == primType) { in test_bounds()
340 SkClipStack stack; in test_isWideOpen()
342 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
352 SkClipStack stack; in test_isWideOpen()
355 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
360 SkClipStack stack; in test_isWideOpen()
374 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
379 SkClipStack stack; in test_isWideOpen()
384 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
389 SkClipStack stack; in test_isWideOpen()
397 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
402 SkClipStack stack; in test_isWideOpen()
409 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID != stack.getTopmostGenID()); in test_isWideOpen()
414 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
418 static int count(const SkClipStack& stack) { in count()
420 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in count()
422 const SkClipStack::Element* element = nullptr; in count()
438 SkClipStack stack; in test_rect_inverse_fill()
442 SkClipStack::BoundsType boundsType; in test_rect_inverse_fill()
444 REPORTER_ASSERT(reporter, SkClipStack::kInsideOut_BoundsType == boundsType); in test_rect_inverse_fill()
453 SkClipStack::BoundsType type; in test_rect_replace()
459 SkClipStack stack; in test_rect_replace()
470 SkClipStack stack; in test_rect_replace()
481 SkClipStack stack; in test_rect_replace()
493 SkClipStack stack; in test_rect_replace()
531 SkClipStack stack; in test_path_replace()
541 SkClipStack stack; in test_path_replace()
560 SkClipStack::BoundsType type; in test_rect_merging()
565 SkClipStack stack; in test_rect_merging()
580 SkClipStack stack; in test_rect_merging()
595 SkClipStack stack; in test_rect_merging()
610 SkClipStack stack; in test_rect_merging()
625 SkClipStack stack; in test_rect_merging()
640 SkClipStack stack; in test_rect_merging()
671 SkClipStack stack; in test_quickContains()
679 SkClipStack stack; in test_quickContains()
685 SkClipStack stack; in test_quickContains()
694 SkClipStack stack; in test_quickContains()
704 SkClipStack stack; in test_quickContains()
713 SkClipStack stack; in test_quickContains()
719 SkClipStack stack; in test_quickContains()
725 SkClipStack stack; in test_quickContains()
731 SkClipStack stack; in test_quickContains()
738 SkClipStack stack; in test_quickContains()
744 SkClipStack stack; in test_quickContains()
750 SkClipStack stack; in test_quickContains()
756 SkClipStack stack; in test_quickContains()
763 SkClipStack stack; in test_quickContains()
772 SkClipStack stack; in test_quickContains()
781 SkClipStack stack; in test_quickContains()
790 SkClipStack stack; in test_quickContains()
800 SkClipStack stack; in test_quickContains()
808 SkClipStack stack; in test_quickContains()
816 SkClipStack stack; in test_quickContains()
824 SkClipStack stack; in test_quickContains()
832 static void set_region_to_stack(const SkClipStack& stack, const SkIRect& bounds, SkRegion* region) { in set_region_to_stack()
834 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in set_region_to_stack()
835 while (const SkClipStack::Element *element = iter.next()) { in set_region_to_stack()
841 case SkClipStack::Element::DeviceSpaceType::kEmpty: in set_region_to_stack()
854 SkClipStack stack; in test_invfill_diff_bug()
862 REPORTER_ASSERT(reporter, SkClipStack::kEmptyGenID == stack.getTopmostGenID()); in test_invfill_diff_bug()
865 SkClipStack::BoundsType stackBoundsType; in test_invfill_diff_bug()
869 REPORTER_ASSERT(reporter, SkClipStack::kNormal_BoundsType == stackBoundsType); in test_invfill_diff_bug()
886 SkClipStack* stack,
889 static void add_round_rect(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_round_rect()
905 static void add_rect(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_rect()
917 static void add_oval(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_oval()
927 static void add_elem_to_stack(const SkClipStack::Element& element, SkClipStack* stack) { in add_elem_to_stack()
929 case SkClipStack::Element::DeviceSpaceType::kRect: in add_elem_to_stack()
933 case SkClipStack::Element::DeviceSpaceType::kRRect: in add_elem_to_stack()
937 case SkClipStack::Element::DeviceSpaceType::kPath: in add_elem_to_stack()
941 case SkClipStack::Element::DeviceSpaceType::kEmpty: in add_elem_to_stack()
998 SkClipStack stack; in test_reduced_clip_stack()
1051 GR_STATIC_ASSERT(0 == SkClipStack::kInvalidGenID); in test_reduced_clip_stack()
1060 SkClipStack::kInvalidGenID != reduced->maskGenID(), in test_reduced_clip_stack()
1066 SkClipStack::BoundsType stackBoundsType; in test_reduced_clip_stack()
1072 SkClipStack reducedStack; in test_reduced_clip_stack()
1108 SkClipStack stack; in test_reduced_clip_stack_genid()
1120 GR_STATIC_ASSERT(0 == SkClipStack::kInvalidGenID); in test_reduced_clip_stack_genid()
1125 REPORTER_ASSERT(reporter, SkClipStack::kInvalidGenID != reduced->maskGenID()); in test_reduced_clip_stack_genid()
1130 SkClipStack stack; in test_reduced_clip_stack_genid()
1173 …{ XYWH(0, 0, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(0,… in test_reduced_clip_stack_genid()
1174 …{ XYWH(0.1f, 0.1f, 25.1f, 25.1f), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAll… in test_reduced_clip_stack_genid()
1178 …{ XYWH(50, 0, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(5… in test_reduced_clip_stack_genid()
1179 …{ XYWH(50, 0, 25.3f, 25.3f), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, I… in test_reduced_clip_stack_genid()
1183 …{ XYWH(0, 50, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(0… in test_reduced_clip_stack_genid()
1184 …{ XYWH(0.2f, 50.1f, 25.1f, 25.2f), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAl… in test_reduced_clip_stack_genid()
1188 …{ XYWH(50, 50, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(… in test_reduced_clip_stack_genid()
1189 …{ XYWH(50.3f, 50.3f, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, … in test_reduced_clip_stack_genid()
1196 …{ XYWH(26, 26, 24, 24), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllOut, IXYWH… in test_reduced_clip_stack_genid()
1227 SkClipStack stack; in test_reduced_clip_stack_no_aa_crash()
1248 const SkClipStack& stack, const SkMatrix& queryXform, in test_aa_query()
1258 SkClipStack::BoundsType stackBoundsType; in test_aa_query()
1282 SkASSERT(SkClipStack::kNormal_BoundsType == stackBoundsType); in test_aa_query()
1296 if (SkClipStack::kNormal_BoundsType == stackBoundsType) { in test_aa_query()
1333 SkClipStack stack; in test_reduced_clip_stack_aa()
1401 SkClipStack rectStack; in test_tiny_query_bounds_assertion_bug()
1410 SkClipStack pathStack; in test_tiny_query_bounds_assertion_bug()
1416 for (const SkClipStack& stack : {rectStack, pathStack}) { in test_tiny_query_bounds_assertion_bug()
1434 SkClipStack stack; in test_is_rrect_deep_rect_stack()
1452 SkClipStack stack; in test_is_rrect_deep_rect_stack()
1466 SkClipStack stack; in DEF_TEST()
1482 SkClipStack::B2TIter iter(stack); in DEF_TEST()
1483 const SkClipStack::Element* element = iter.next(); in DEF_TEST()
1489 SkClipStack::Element::DeviceSpaceType::kRect == element->getDeviceSpaceType()); in DEF_TEST()
1501 test_bounds(reporter, SkClipStack::Element::DeviceSpaceType::kRect); in DEF_TEST()
1502 test_bounds(reporter, SkClipStack::Element::DeviceSpaceType::kRRect); in DEF_TEST()
1503 test_bounds(reporter, SkClipStack::Element::DeviceSpaceType::kPath); in DEF_TEST()
1532 SkClipStack stack; in DEF_GPUTEST_FOR_ALL_CONTEXTS()