• Home
  • Raw
  • Download

Lines Matching refs:SkClipStack

52     SkClipStack s;  in test_assign_and_comparison()
83 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::kShader: in test_bounds()
298 case SkClipStack::Element::DeviceSpaceType::kEmpty: in test_bounds()
301 case SkClipStack::Element::DeviceSpaceType::kRect: in test_bounds()
305 case SkClipStack::Element::DeviceSpaceType::kRRect: in test_bounds()
309 case SkClipStack::Element::DeviceSpaceType::kPath: in test_bounds()
316 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID != stack.getTopmostGenID()); in test_bounds()
321 if (SkClipStack::Element::DeviceSpaceType::kRect == primType) { in test_bounds()
341 SkClipStack stack; in test_isWideOpen()
343 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
353 SkClipStack stack; in test_isWideOpen()
356 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
361 SkClipStack stack; in test_isWideOpen()
375 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
380 SkClipStack stack; in test_isWideOpen()
385 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
390 SkClipStack stack; in test_isWideOpen()
398 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
403 SkClipStack stack; in test_isWideOpen()
410 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID != stack.getTopmostGenID()); in test_isWideOpen()
415 REPORTER_ASSERT(reporter, SkClipStack::kWideOpenGenID == stack.getTopmostGenID()); in test_isWideOpen()
419 static int count(const SkClipStack& stack) { in count()
421 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in count()
423 const SkClipStack::Element* element = nullptr; in count()
439 SkClipStack stack; in test_rect_inverse_fill()
443 SkClipStack::BoundsType boundsType; in test_rect_inverse_fill()
445 REPORTER_ASSERT(reporter, SkClipStack::kInsideOut_BoundsType == boundsType); in test_rect_inverse_fill()
454 SkClipStack::BoundsType type; in test_rect_replace()
460 SkClipStack stack; in test_rect_replace()
471 SkClipStack stack; in test_rect_replace()
482 SkClipStack stack; in test_rect_replace()
494 SkClipStack stack; in test_rect_replace()
532 SkClipStack stack; in test_path_replace()
542 SkClipStack stack; in test_path_replace()
561 SkClipStack::BoundsType type; in test_rect_merging()
566 SkClipStack stack; in test_rect_merging()
581 SkClipStack stack; in test_rect_merging()
596 SkClipStack stack; in test_rect_merging()
611 SkClipStack stack; in test_rect_merging()
626 SkClipStack stack; in test_rect_merging()
641 SkClipStack stack; in test_rect_merging()
672 SkClipStack stack; in test_quickContains()
680 SkClipStack stack; in test_quickContains()
686 SkClipStack stack; in test_quickContains()
695 SkClipStack stack; in test_quickContains()
705 SkClipStack stack; in test_quickContains()
714 SkClipStack stack; in test_quickContains()
720 SkClipStack stack; in test_quickContains()
726 SkClipStack stack; in test_quickContains()
732 SkClipStack stack; in test_quickContains()
739 SkClipStack stack; in test_quickContains()
745 SkClipStack stack; in test_quickContains()
751 SkClipStack stack; in test_quickContains()
757 SkClipStack stack; in test_quickContains()
764 SkClipStack stack; in test_quickContains()
773 SkClipStack stack; in test_quickContains()
782 SkClipStack stack; in test_quickContains()
791 SkClipStack stack; in test_quickContains()
801 SkClipStack stack; in test_quickContains()
809 SkClipStack stack; in test_quickContains()
817 SkClipStack stack; in test_quickContains()
825 SkClipStack stack; in test_quickContains()
833 static void set_region_to_stack(const SkClipStack& stack, const SkIRect& bounds, SkRegion* region) { in set_region_to_stack()
835 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in set_region_to_stack()
836 while (const SkClipStack::Element *element = iter.next()) { in set_region_to_stack()
842 case SkClipStack::Element::DeviceSpaceType::kEmpty: in set_region_to_stack()
856 SkClipStack stack; in test_invfill_diff_bug()
864 REPORTER_ASSERT(reporter, SkClipStack::kEmptyGenID == stack.getTopmostGenID()); in test_invfill_diff_bug()
867 SkClipStack::BoundsType stackBoundsType; in test_invfill_diff_bug()
871 REPORTER_ASSERT(reporter, SkClipStack::kNormal_BoundsType == stackBoundsType); in test_invfill_diff_bug()
888 SkClipStack* stack,
891 static void add_round_rect(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_round_rect()
907 static void add_rect(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_rect()
919 static void add_oval(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_oval()
929 static void add_shader(const SkRect& rect, bool invert, SkClipOp op, SkClipStack* stack, in add_shader()
939 static void add_elem_to_stack(const SkClipStack::Element& element, SkClipStack* stack) { in add_elem_to_stack()
941 case SkClipStack::Element::DeviceSpaceType::kRect: in add_elem_to_stack()
945 case SkClipStack::Element::DeviceSpaceType::kRRect: in add_elem_to_stack()
949 case SkClipStack::Element::DeviceSpaceType::kPath: in add_elem_to_stack()
953 case SkClipStack::Element::DeviceSpaceType::kShader: in add_elem_to_stack()
957 case SkClipStack::Element::DeviceSpaceType::kEmpty: in add_elem_to_stack()
1015 SkClipStack stack; in test_reduced_clip_stack()
1073 static_assert(0 == SkClipStack::kInvalidGenID); in test_reduced_clip_stack()
1082 SkClipStack::kInvalidGenID != reduced->maskGenID(), in test_reduced_clip_stack()
1088 SkClipStack::BoundsType stackBoundsType; in test_reduced_clip_stack()
1094 SkClipStack reducedStack; in test_reduced_clip_stack()
1134 SkClipStack stack; in test_reduced_clip_stack_genid()
1146 static_assert(0 == SkClipStack::kInvalidGenID); in test_reduced_clip_stack_genid()
1151 REPORTER_ASSERT(reporter, SkClipStack::kInvalidGenID != reduced->maskGenID()); in test_reduced_clip_stack_genid()
1156 SkClipStack stack; in test_reduced_clip_stack_genid()
1199 …{ XYWH(0, 0, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(0,… in test_reduced_clip_stack_genid()
1200 …{ XYWH(0.1f, 0.1f, 25.1f, 25.1f), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAll… in test_reduced_clip_stack_genid()
1204 …{ XYWH(50, 0, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(5… in test_reduced_clip_stack_genid()
1205 …{ XYWH(50, 0, 25.3f, 25.3f), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, I… in test_reduced_clip_stack_genid()
1209 …{ XYWH(0, 50, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(0… in test_reduced_clip_stack_genid()
1210 …{ XYWH(0.2f, 50.1f, 25.1f, 25.2f), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAl… in test_reduced_clip_stack_genid()
1214 …{ XYWH(50, 50, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, IXYWH(… in test_reduced_clip_stack_genid()
1215 …{ XYWH(50.3f, 50.3f, 25, 25), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllIn, … in test_reduced_clip_stack_genid()
1222 …{ XYWH(26, 26, 24, 24), 0, SkClipStack::kInvalidGenID, GrReducedClip::InitialState::kAllOut, SkIRe… in test_reduced_clip_stack_genid()
1252 SkClipStack stack; in test_reduced_clip_stack_no_aa_crash()
1273 const SkClipStack& stack, const SkMatrix& queryXform, in test_aa_query()
1283 SkClipStack::BoundsType stackBoundsType; in test_aa_query()
1307 SkASSERT(SkClipStack::kNormal_BoundsType == stackBoundsType); in test_aa_query()
1321 if (SkClipStack::kNormal_BoundsType == stackBoundsType) { in test_aa_query()
1358 SkClipStack stack; in test_reduced_clip_stack_aa()
1426 SkClipStack rectStack; in test_tiny_query_bounds_assertion_bug()
1435 SkClipStack pathStack; in test_tiny_query_bounds_assertion_bug()
1441 for (const SkClipStack& stack : {rectStack, pathStack}) { in test_tiny_query_bounds_assertion_bug()
1459 SkClipStack stack; in test_is_rrect_deep_rect_stack()
1477 SkClipStack stack; in test_is_rrect_deep_rect_stack()
1491 SkClipStack stack; in DEF_TEST()
1507 SkClipStack::B2TIter iter(stack); in DEF_TEST()
1508 const SkClipStack::Element* element = iter.next(); in DEF_TEST()
1514 SkClipStack::Element::DeviceSpaceType::kRect == element->getDeviceSpaceType()); in DEF_TEST()
1526 test_bounds(reporter, SkClipStack::Element::DeviceSpaceType::kRect); in DEF_TEST()
1527 test_bounds(reporter, SkClipStack::Element::DeviceSpaceType::kRRect); in DEF_TEST()
1528 test_bounds(reporter, SkClipStack::Element::DeviceSpaceType::kPath); in DEF_TEST()
1564 SkClipStack stack; in DEF_GPUTEST_FOR_ALL_CONTEXTS()