Lines Matching defs:bounds
38 static void test_add_rrect(skiatest::Reporter* reporter, const SkRect& bounds,
41 rrect.setRectRadii(bounds, radii);
42 REPORTER_ASSERT(reporter, bounds == rrect.rect());
47 REPORTER_ASSERT(reporter, bounds == path.getBounds());
699 static void dump_if_ne(skiatest::Reporter* reporter, const SkRect& expected, const SkRect& bounds) {
700 if (expected != bounds) {
702 bounds.left(), bounds.top(), bounds.right(), bounds.bottom(),
725 path.moveTo(-5, -8); // should set the bounds
728 path.addRect(SkRect::MakeLTRB(1, 2, 3, 4)); // should extend the bounds
731 path.moveTo(1, 2); // don't expect this to have changed the bounds
772 // Be sure that path::transform correctly updates isFinite and the bounds
774 // set to true in this case, but the bounds were not set to empty (which
1523 const SkRect& bounds) {
1525 REPORTER_ASSERT(reporter, p.getBounds() == bounds);
1529 REPORTER_ASSERT(reporter, p2.getBounds() == bounds);
1534 REPORTER_ASSERT(reporter, other.getBounds() == bounds);
1793 // A circle that bounds kBaseRect (with a significant amount of slop)
4835 SkRect bounds, bounds2;
4847 bounds.setLTRB(0, 0, SK_Scalar1, SK_Scalar1);
4849 p.addRoundRect(bounds, SK_Scalar1, SK_Scalar1);
4850 check_convex_bounds(reporter, p, bounds);
4859 p.addOval(bounds);
4860 check_convex_bounds(reporter, p, bounds);
4866 p.addRect(bounds);
4867 check_convex_bounds(reporter, p, bounds);
4891 REPORTER_ASSERT(reporter, bounds == bounds2);
4893 bounds.offset(SK_Scalar1*3, SK_Scalar1*4);
4895 REPORTER_ASSERT(reporter, bounds == p.getBounds());
4900 REPORTER_ASSERT(reporter, bounds == bounds2);
4903 bounds.setWH(SK_Scalar1/2, SK_Scalar1/2);
4904 p.addRect(bounds);
4912 p.addRect(bounds);
4914 REPORTER_ASSERT(reporter, r == bounds);
4915 // add a moveTo outside of our bounds
4916 p.moveTo(bounds.fLeft + 10, bounds.fBottom + 10);
4918 REPORTER_ASSERT(reporter, r == bounds);
5043 SkRect bounds = path.getBounds();
5045 REPORTER_ASSERT(reporter, bounds.contains(tight));
5418 // -0.5 due to accumulated += error of the slope. We have since make the bounds calculation
5420 // This test was added to demonstrate the need for this conservative bounds calc.
5495 // There was a time where SkPath::setLastPoint() didn't invalidate cached path bounds.