• Home
  • Raw
  • Download

Lines Matching refs:radii

29         SkVector radii[4] = {  in test_tricky_radii()  local
33 rr.setRectRadii(r, radii); in test_tricky_radii()
35 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii()
36 (double) rr.radii(SkRRect::kLowerRight_Corner).fY <= in test_tricky_radii()
70 static const SkVector radii[4] = { { 0, 1 }, { 2, 3 }, { 4, 5 }, { 6, 7 } }; in test_empty() local
91 r.setRectRadii(oooRects[i], radii); in test_empty()
113 r.setRectRadii(emptyRects[i], radii); in test_empty()
165 REPORTER_ASSERT(reporter, rquad[i] == rr.radii((SkRRect::Corner) i)); in test_9patch_rrect()
169 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect() local
170 rr2.setRectRadii(rect, radii); in test_9patch_rrect()
186 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i)); in test_round_rect_basic()
199 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i)); in test_round_rect_basic()
219 SkPointPriv::EqualsWithinTolerance(rr2.radii((SkRRect::Corner) i), in test_round_rect_basic()
240 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i)); in test_round_rect_basic()
273 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i)); in test_round_rect_basic()
304 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; in test_round_rect_rects() local
307 rr2.setRectRadii(rect, radii); in test_round_rect_rects()
344 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; in test_round_rect_general() local
347 rr2.setRectRadii(rect, radii); in test_round_rect_general()
358 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; in test_round_rect_iffy_parameters() local
361 rr1.setRectRadii(rect, radii); in test_round_rect_iffy_parameters()
365 const SkPoint& p = rr1.radii(SkRRect::kUpperLeft_Corner); in test_round_rect_iffy_parameters()
376 const SkPoint& p2 = rr2.radii(SkRRect::kUpperLeft_Corner); in test_round_rect_iffy_parameters()
537 const SkVector& origUL = orig.radii(SkRRect::kUpperLeft_Corner); \
538 const SkVector& origUR = orig.radii(SkRRect::kUpperRight_Corner); \
539 const SkVector& origLR = orig.radii(SkRRect::kLowerRight_Corner); \
540 const SkVector& origLL = orig.radii(SkRRect::kLowerLeft_Corner); \
541 const SkVector& dstUL = dst.radii(SkRRect::kUpperLeft_Corner); \
542 const SkVector& dstUR = dst.radii(SkRRect::kUpperRight_Corner); \
543 const SkVector& dstLR = dst.radii(SkRRect::kLowerRight_Corner); \
544 const SkVector& dstLL = dst.radii(SkRRect::kLowerLeft_Corner)
590 orig.radii((SkRRect::Corner) i) == dst.radii((SkRRect::Corner) i)); in test_transform_helper()
680 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fX, in test_transform_helper()
681 orig.radii((SkRRect::Corner) i).fX * xScale)); in test_transform_helper()
682 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fY, in test_transform_helper()
683 orig.radii((SkRRect::Corner) i).fY * yScale)); in test_transform_helper()
918 SkVector radii[4] = { { 0, SkIntToScalar(1) }, in test_round_rect_transform() local
922 rrect.setRectRadii(r, radii); in test_round_rect_transform()
950 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fX, halfWidth)); in test_issue_2696()
952 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fY, halfHeight)); in test_issue_2696()
1069 SkVector radii[4] = {{rng.nextRangeF(0.f, maxRadiusX), rng.nextRangeF(0.f, maxRadiusY)}, in test_inner_bounds() local
1074 float maxLeft = std::max(radii[0].fX, radii[3].fX); in test_inner_bounds()
1075 float maxTop = std::max(radii[0].fY, radii[1].fY); in test_inner_bounds()
1076 float maxRight = std::max(radii[1].fX, radii[2].fX); in test_inner_bounds()
1077 float maxBottom = std::max(radii[2].fY, radii[3].fY); in test_inner_bounds()
1081 rr.setRectRadii(outer, radii); in test_inner_bounds()
1123 SkVector radii[4] = { in verify_success() local
1124 (tl == kA ? a : (tl == kB ? b : kRect)).radii(SkRRect::kUpperLeft_Corner), in verify_success()
1125 (tr == kA ? a : (tr == kB ? b : kRect)).radii(SkRRect::kUpperRight_Corner), in verify_success()
1126 (br == kA ? a : (br == kB ? b : kRect)).radii(SkRRect::kLowerRight_Corner), in verify_success()
1127 (bl == kA ? a : (bl == kB ? b : kRect)).radii(SkRRect::kLowerLeft_Corner) in verify_success()
1130 expected.setRectRadii(expectedBounds, radii); in verify_success()