Lines Matching refs:rr2
125 SkRRect rr, rr2; in test_inset() local
129 rr.inset(-20, -20, &rr2); in test_inset()
130 REPORTER_ASSERT(reporter, rr2.isRect()); in test_inset()
132 rr.inset(20, 20, &rr2); in test_inset()
133 REPORTER_ASSERT(reporter, rr2.isRect()); in test_inset()
135 rr.inset(r.width()/2, r.height()/2, &rr2); in test_inset()
136 REPORTER_ASSERT(reporter, rr2.isEmpty()); in test_inset()
139 rr.inset(19, 19, &rr2); in test_inset()
140 REPORTER_ASSERT(reporter, rr2.isSimple()); in test_inset()
141 rr.inset(20, 20, &rr2); in test_inset()
142 REPORTER_ASSERT(reporter, rr2.isRect()); in test_inset()
165 SkRRect rr2; // construct the same RR using the most general set function in test_9patch_rrect() local
167 rr2.setRectRadii(rect, radii); in test_9patch_rrect()
168 REPORTER_ASSERT(reporter, rr2 == rr && rr2.getType() == rr.getType()); in test_9patch_rrect()
208 SkRRect rr2; in test_round_rect_basic() local
209 rr2.setOval(rect); in test_round_rect_basic()
211 REPORTER_ASSERT(reporter, SkRRect::kOval_Type == rr2.type()); in test_round_rect_basic()
212 REPORTER_ASSERT(reporter, rr2.rect() == rect); in test_round_rect_basic()
216 SkPointPriv::EqualsWithinTolerance(rr2.radii((SkRRect::Corner) i), in test_round_rect_basic()
223 REPORTER_ASSERT(reporter, rr2_2 == rr2 && rr2_2.getType() == rr2.getType()); in test_round_rect_basic()
226 REPORTER_ASSERT(reporter, rr2_3 == rr2 && rr2_3.getType() == rr2.getType()); in test_round_rect_basic()
303 SkRRect rr2; in test_round_rect_rects() local
304 rr2.setRectRadii(rect, radii); in test_round_rect_rects()
306 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr2.type()); in test_round_rect_rects()
307 r = rr2.rect(); in test_round_rect_rects()
343 SkRRect rr2; in test_round_rect_general() local
344 rr2.setRectRadii(rect, radii); in test_round_rect_general()
346 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr2.type()); in test_round_rect_general()
368 SkRRect rr2; in test_round_rect_iffy_parameters() local
369 rr2.setRectXY(rect, -10, -20); in test_round_rect_iffy_parameters()
371 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr2.type()); in test_round_rect_iffy_parameters()
373 const SkPoint& p2 = rr2.radii(SkRRect::kUpperLeft_Corner); in test_round_rect_iffy_parameters()