Home | History | Annotate | Download | only in tests

Lines Matching defs:radii

49         REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i));
62 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i));
75 rr2.radii((SkRRect::Corner) i).equalsWithinTolerance(halfPoint));
87 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i));
91 SkPoint radii[4] = { { 5, 5 }, { 5, 5 }, { 5, 5 }, { 5, 5 } };
94 rr4.setRectRadii(rect, radii);
100 REPORTER_ASSERT(reporter, radii[i] == rr4.radii((SkRRect::Corner) i));
113 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i));
145 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } };
148 rr2.setRectRadii(rect, radii);
185 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } };
188 rr2.setRectRadii(rect, radii);
196 // When the radii exceed the base rect they are proportionally scaled down
199 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } };
202 rr1.setRectRadii(rect, radii);
206 const SkPoint& p = rr1.radii(SkRRect::kUpperLeft_Corner);
211 // Negative radii should be capped at zero
217 const SkPoint& p2 = rr2.radii(SkRRect::kUpperLeft_Corner);
378 const SkVector& origUL = orig.radii(SkRRect::kUpperLeft_Corner); \
379 const SkVector& origUR = orig.radii(SkRRect::kUpperRight_Corner); \
380 const SkVector& origLR = orig.radii(SkRRect::kLowerRight_Corner); \
381 const SkVector& origLL = orig.radii(SkRRect::kLowerLeft_Corner); \
382 const SkVector& dstUL = dst.radii(SkRRect::kUpperLeft_Corner); \
383 const SkVector& dstUR = dst.radii(SkRRect::kUpperRight_Corner); \
384 const SkVector& dstLR = dst.radii(SkRRect::kLowerRight_Corner); \
385 const SkVector& dstLL = dst.radii(SkRRect::kLowerLeft_Corner)
433 orig.radii((SkRRect::Corner) i) == dst.radii((SkRRect::Corner) i));
452 // Radii have swapped in x.
478 // Radii have swapped in y.
521 // Radii are scaled.
523 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fX,
524 SkScalarMul(orig.radii((SkRRect::Corner) i).fX, xScale)));
525 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fY,
526 SkScalarMul(orig.radii((SkRRect::Corner) i).fY, yScale)));
548 SkVector radii[4] = { { 0, SkIntToScalar(1) },
552 rrect.setRectRadii(r, radii);