• Home
  • Raw
  • Download

Lines Matching refs:SkRect

63     recorder.drawRect(SkRect::MakeWH(200, 300), SkPaint());  in DEF_TEST()
64 recorder.clipRect(SkRect::MakeWH(100, 200)); in DEF_TEST()
126 static bool sloppy_rect_eq(SkRect a, SkRect b) { in sloppy_rect_eq()
127 SkRect inset(a), outset(a); in sloppy_rect_eq()
139 recorder.clipRect(SkRect::MakeWH(400, 500));
141 recorder.drawRect(SkRect::MakeWH(320, 240), SkPaint());
144 SkAutoTMalloc<SkRect> bounds(record.count());
145 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds);
148 REPORTER_ASSERT(r, sloppy_rect_eq(SkRect::MakeWH(400, 480), bounds[i]));
157 SkRect r1 = { 0, 0, kWidth, kHeight }; in DEF_TEST()
158 SkRect r2 = { 0, 0, kWidth, kHeight/2 }; in DEF_TEST()
159 SkRect r3 = { 0, 0, kWidth/2, kHeight }; in DEF_TEST()
193 recorder.clipRect(SkRect::MakeWH(20, 40)); in DEF_TEST()
194 recorder.drawRect(SkRect::MakeWH(20, 40), SkPaint()); in DEF_TEST()
202 SkAutoTMalloc<SkRect> bounds(record.count()); in DEF_TEST()
203 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds); in DEF_TEST()
204 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[0], SkRect::MakeLTRB(0, 0, 50, 50))); in DEF_TEST()
205 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[1], SkRect::MakeLTRB(0, 0, 50, 50))); in DEF_TEST()
206 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[2], SkRect::MakeLTRB(0, 0, 40, 40))); in DEF_TEST()
207 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[3], SkRect::MakeLTRB(0, 0, 50, 50))); in DEF_TEST()
222 SkRect layerBounds = SkRect::MakeLTRB(10, 10, 40, 40);
224 recorder.drawRect(SkRect::MakeLTRB(20, 20, 30, 30), SkPaint());
227 SkAutoTMalloc<SkRect> bounds(record.count());
228 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds);
229 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[0], SkRect::MakeLTRB(10, 10, 40, 40)));
230 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[1], SkRect::MakeLTRB(20, 20, 30, 30)));
231 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[2], SkRect::MakeLTRB(10, 10, 40, 40)));
247 void onDrawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst, in DEF_TEST()
278 recorder.drawImageRect(image, SkRect::MakeWH(10, 10), nullptr); in DEF_TEST()