Lines Matching refs:rect
45 REPORTER_ASSERT(reporter, empty.rect().isEmpty()); in test_round_rect_basic()
52 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_basic() local
55 rr1.setRect(rect); in test_round_rect_basic()
58 REPORTER_ASSERT(reporter, rr1.rect() == rect); in test_round_rect_basic()
65 rr1_2.setRectRadii(rect, rr1_2_radii); in test_round_rect_basic()
68 rr1_3.setNinePatch(rect, 0, 0, 0, 0); in test_round_rect_basic()
74 rr2.setOval(rect); in test_round_rect_basic()
77 REPORTER_ASSERT(reporter, rr2.rect() == rect); in test_round_rect_basic()
86 rr2_2.setRectRadii(rect, rr2_2_radii); in test_round_rect_basic()
89 rr2_3.setNinePatch(rect, halfPoint.fX, halfPoint.fY, halfPoint.fX, halfPoint.fY); in test_round_rect_basic()
95 rr3.setRectXY(rect, p.fX, p.fY); in test_round_rect_basic()
98 REPORTER_ASSERT(reporter, rr3.rect() == rect); in test_round_rect_basic()
105 rr3_2.setRectRadii(rect, rr3_2_radii); in test_round_rect_basic()
108 rr3_3.setNinePatch(rect, 5, 5, 5, 5); in test_round_rect_basic()
115 rr4.setNinePatch(rect, ninePatchRadii.fLeft, ninePatchRadii.fTop, ninePatchRadii.fRight, in test_round_rect_basic()
119 REPORTER_ASSERT(reporter, rr4.rect() == rect); in test_round_rect_basic()
128 rr4_2.setRectRadii(rect, rr4_2_radii); in test_round_rect_basic()
135 rr5.setRectRadii(rect, radii2); in test_round_rect_basic()
138 REPORTER_ASSERT(reporter, rr5.rect() == rect); in test_round_rect_basic()
160 r = empty.rect(); in test_round_rect_rects()
164 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_rects() local
166 rr1.setRectXY(rect, 0, 0); in test_round_rect_rects()
169 r = rr1.rect(); in test_round_rect_rects()
170 REPORTER_ASSERT(reporter, rect == r); in test_round_rect_rects()
176 rr2.setRectRadii(rect, radii); in test_round_rect_rects()
179 r = rr2.rect(); in test_round_rect_rects()
180 REPORTER_ASSERT(reporter, rect == r); in test_round_rect_rects()
186 rr3.setRectRadii(rect, radii2); in test_round_rect_rects()
194 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_ovals() local
196 rr1.setRectXY(rect, SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in test_round_rect_ovals()
199 oval = rr1.rect(); in test_round_rect_ovals()
200 REPORTER_ASSERT(reporter, oval == rect); in test_round_rect_ovals()
206 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_general() local
208 rr1.setRectXY(rect, 20, 20); in test_round_rect_general()
216 rr2.setRectRadii(rect, radii); in test_round_rect_general()
226 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_iffy_parameters() local
230 rr1.setRectRadii(rect, radii); in test_round_rect_iffy_parameters()
241 rr2.setRectXY(rect, -10, -20); in test_round_rect_iffy_parameters()
463 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
464 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
465 REPORTER_ASSERT(reporter, dst.rect().left() == orig.rect().left() + translateX); in test_transform_helper()
466 REPORTER_ASSERT(reporter, dst.rect().top() == orig.rect().top() + translateY); in test_transform_helper()
487 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
488 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
490 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left()); in test_transform_helper()
492 REPORTER_ASSERT(reporter, orig.rect().top() == dst.rect().top()); in test_transform_helper()
513 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
514 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
516 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom()); in test_transform_helper()
518 REPORTER_ASSERT(reporter, orig.rect().left() == dst.rect().left()); in test_transform_helper()
535 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
536 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
537 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom()); in test_transform_helper()
538 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left()); in test_transform_helper()
556 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().width(), in test_transform_helper()
557 SkScalarMul(orig.rect().width(), xScale))); in test_transform_helper()
558 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().height(), in test_transform_helper()
559 SkScalarMul(orig.rect().height(), yScale))); in test_transform_helper()
560 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().left(), in test_transform_helper()
561 SkScalarMul(orig.rect().left(), xScale))); in test_transform_helper()
562 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().top(), in test_transform_helper()
563 SkScalarMul(orig.rect().top(), yScale))); in test_transform_helper()