Lines Matching refs:rect

74         REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());  in test_empty()
78 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
82 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
86 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
90 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
96 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
100 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
104 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
108 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
112 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
147 const SkRect& rect, in test_9patch_rrect() argument
151 rr.setNinePatch(rect, l, t, r, b); in test_9patch_rrect()
154 REPORTER_ASSERT(reporter, rr.rect() == rect); in test_9patch_rrect()
167 rr2.setRectRadii(rect, radii); in test_9patch_rrect()
180 REPORTER_ASSERT(reporter, empty.rect().isEmpty()); in test_round_rect_basic()
187 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_basic() local
190 rr1.setRect(rect); in test_round_rect_basic()
193 REPORTER_ASSERT(reporter, rr1.rect() == rect); in test_round_rect_basic()
200 rr1_2.setRectRadii(rect, rr1_2_radii); in test_round_rect_basic()
203 rr1_3.setNinePatch(rect, 0, 0, 0, 0); in test_round_rect_basic()
209 rr2.setOval(rect); in test_round_rect_basic()
212 REPORTER_ASSERT(reporter, rr2.rect() == rect); in test_round_rect_basic()
222 rr2_2.setRectRadii(rect, rr2_2_radii); in test_round_rect_basic()
225 rr2_3.setNinePatch(rect, halfPoint.fX, halfPoint.fY, halfPoint.fX, halfPoint.fY); in test_round_rect_basic()
231 rr3.setRectXY(rect, p.fX, p.fY); in test_round_rect_basic()
234 REPORTER_ASSERT(reporter, rr3.rect() == rect); in test_round_rect_basic()
241 rr3_2.setRectRadii(rect, rr3_2_radii); in test_round_rect_basic()
244 rr3_3.setNinePatch(rect, 5, 5, 5, 5); in test_round_rect_basic()
248 test_9patch_rrect(reporter, rect, 10, 9, 8, 7, true); in test_round_rect_basic()
264 rr5.setRectRadii(rect, radii2); in test_round_rect_basic()
267 REPORTER_ASSERT(reporter, rr5.rect() == rect); in test_round_rect_basic()
288 r = empty.rect(); in test_round_rect_rects()
292 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_rects() local
294 rr1.setRectXY(rect, 0, 0); in test_round_rect_rects()
297 r = rr1.rect(); in test_round_rect_rects()
298 REPORTER_ASSERT(reporter, rect == r); in test_round_rect_rects()
304 rr2.setRectRadii(rect, radii); in test_round_rect_rects()
307 r = rr2.rect(); in test_round_rect_rects()
308 REPORTER_ASSERT(reporter, rect == r); in test_round_rect_rects()
314 rr3.setRectRadii(rect, radii2); in test_round_rect_rects()
322 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_ovals() local
324 rr1.setRectXY(rect, SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in test_round_rect_ovals()
327 oval = rr1.rect(); in test_round_rect_ovals()
328 REPORTER_ASSERT(reporter, oval == rect); in test_round_rect_ovals()
334 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_general() local
336 rr1.setRectXY(rect, 20, 20); in test_round_rect_general()
344 rr2.setRectRadii(rect, radii); in test_round_rect_general()
354 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_iffy_parameters() local
358 rr1.setRectRadii(rect, radii); in test_round_rect_iffy_parameters()
369 rr2.setRectXY(rect, -10, -20); in test_round_rect_iffy_parameters()
591 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
592 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
593 REPORTER_ASSERT(reporter, dst.rect().left() == orig.rect().left() + translateX); in test_transform_helper()
594 REPORTER_ASSERT(reporter, dst.rect().top() == orig.rect().top() + translateY); in test_transform_helper()
615 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
616 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
618 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left()); in test_transform_helper()
620 REPORTER_ASSERT(reporter, orig.rect().top() == dst.rect().top()); in test_transform_helper()
641 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
642 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
644 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom()); in test_transform_helper()
646 REPORTER_ASSERT(reporter, orig.rect().left() == dst.rect().left()); in test_transform_helper()
663 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
664 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
665 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom()); in test_transform_helper()
666 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left()); in test_transform_helper()
684 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().width(), in test_transform_helper()
685 orig.rect().width() * xScale)); in test_transform_helper()
686 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().height(), in test_transform_helper()
687 orig.rect().height() * yScale)); in test_transform_helper()
688 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().left(), in test_transform_helper()
689 orig.rect().left() * xScale)); in test_transform_helper()
690 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().top(), in test_transform_helper()
691 orig.rect().top() * yScale)); in test_transform_helper()