Lines Matching refs:SkIRect
20 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
180 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh);
181 SkIRect clippedSrcRect = DEV_RECT;
231 static void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, BitmapInit init) {
255 const SkIRect testRects[] = {
259 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10),
261 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4),
263 SkIRect::MakeLTRB(-10, -10, -1, -1),
265 SkIRect::MakeLTRB(-10, -10, 0, 0),
267 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4),
269 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4),
271 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0),
273 SkIRect::MakeLTRB(3 * DEV_W / 4, -10, DEV_W + 10, DEV_H / 4),
275 SkIRect::MakeLTRB(DEV_W / 4, -10, 3 * DEV_W / 4, DEV_H / 4),
277 SkIRect::MakeLTRB(DEV_W + 1, -10, DEV_W + 10, -1),
279 SkIRect::MakeLTRB(DEV_W, -10, DEV_W + 10, 0),
281 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H + 10),
283 SkIRect::MakeLTRB(-10, -10, 0, DEV_H + 10),
285 SkIRect::MakeLTRB(-10, 3 * DEV_H / 4, DEV_W / 4, DEV_H + 10),
287 SkIRect::MakeLTRB(-10, DEV_H / 4, DEV_W / 4, 3 * DEV_H / 4),
289 SkIRect::MakeLTRB(-10, DEV_H + 1, -1, DEV_H + 10),
291 SkIRect::MakeLTRB(-10, DEV_H, 0, DEV_H + 10),
293 SkIRect::MakeLTRB(-10, 3 * DEV_H / 4, DEV_W + 10, DEV_H + 10),
295 SkIRect::MakeLTRB(0, DEV_H, DEV_W, DEV_H + 10),
297 SkIRect::MakeLTRB(3 * DEV_W / 4, 3 * DEV_H / 4, DEV_W + 10, DEV_H + 10),
299 SkIRect::MakeLTRB(3 * DEV_W / 4, -10, DEV_W + 10, DEV_H + 10),
353 const SkIRect& srcRect = testRects[rect];
376 bool expectSuccess = SkIRect::Intersects(srcRect, DEV_RECT);
395 SkIRect clippedRect = DEV_RECT;