Lines Matching refs:radii
26 SkVector radii[4] = { in test_tricky_radii() local
30 rr.setRectRadii(r, radii); in test_tricky_radii()
32 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii()
33 (double) rr.radii(SkRRect::kLowerRight_Corner).fY <= in test_tricky_radii()
67 static const SkVector radii[4] = { { 0, 1 }, { 2, 3 }, { 4, 5 }, { 6, 7 } }; in test_empty() local
88 r.setRectRadii(oooRects[i], radii); in test_empty()
110 r.setRectRadii(emptyRects[i], radii); in test_empty()
162 REPORTER_ASSERT(reporter, rquad[i] == rr.radii((SkRRect::Corner) i)); in test_9patch_rrect()
166 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; in test_9patch_rrect() local
167 rr2.setRectRadii(rect, radii); in test_9patch_rrect()
183 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i)); in test_round_rect_basic()
196 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i)); in test_round_rect_basic()
216 SkPointPriv::EqualsWithinTolerance(rr2.radii((SkRRect::Corner) i), in test_round_rect_basic()
237 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i)); in test_round_rect_basic()
270 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i)); in test_round_rect_basic()
301 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; in test_round_rect_rects() local
304 rr2.setRectRadii(rect, radii); in test_round_rect_rects()
341 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; in test_round_rect_general() local
344 rr2.setRectRadii(rect, radii); in test_round_rect_general()
355 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; in test_round_rect_iffy_parameters() local
358 rr1.setRectRadii(rect, radii); in test_round_rect_iffy_parameters()
362 const SkPoint& p = rr1.radii(SkRRect::kUpperLeft_Corner); in test_round_rect_iffy_parameters()
373 const SkPoint& p2 = rr2.radii(SkRRect::kUpperLeft_Corner); in test_round_rect_iffy_parameters()
534 const SkVector& origUL = orig.radii(SkRRect::kUpperLeft_Corner); \
535 const SkVector& origUR = orig.radii(SkRRect::kUpperRight_Corner); \
536 const SkVector& origLR = orig.radii(SkRRect::kLowerRight_Corner); \
537 const SkVector& origLL = orig.radii(SkRRect::kLowerLeft_Corner); \
538 const SkVector& dstUL = dst.radii(SkRRect::kUpperLeft_Corner); \
539 const SkVector& dstUR = dst.radii(SkRRect::kUpperRight_Corner); \
540 const SkVector& dstLR = dst.radii(SkRRect::kLowerRight_Corner); \
541 const SkVector& dstLL = dst.radii(SkRRect::kLowerLeft_Corner)
589 orig.radii((SkRRect::Corner) i) == dst.radii((SkRRect::Corner) i)); in test_transform_helper()
679 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fX, in test_transform_helper()
680 orig.radii((SkRRect::Corner) i).fX * xScale)); in test_transform_helper()
681 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fY, in test_transform_helper()
682 orig.radii((SkRRect::Corner) i).fY * yScale)); in test_transform_helper()
704 SkVector radii[4] = { { 0, SkIntToScalar(1) }, in test_round_rect_transform() local
708 rrect.setRectRadii(r, radii); in test_round_rect_transform()
736 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fX, halfWidth)); in test_issue_2696()
738 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fY, halfHeight)); in test_issue_2696()