Lines Matching refs:srcRect
184 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in check_read() local
186 if (!clippedSrcRect.intersect(srcRect)) { in check_read()
192 int devx = bx + srcRect.fLeft; in check_read()
193 int devy = by + srcRect.fTop; in check_read()
332 const SkIRect& srcRect = gReadPixelsTestRects[rect]; in test_readpixels() local
336 init_bitmap(&bmp, srcRect, bmi, in test_readpixels()
346 bool success = canvas->readPixels(&bmp, srcRect.fLeft, srcRect.fTop); in test_readpixels()
351 bool expectSuccess = SkIRect::Intersects(srcRect, DEV_RECT); in test_readpixels()
358 check_read(reporter, bmp, srcRect.fLeft, srcRect.fTop, in test_readpixels()
369 bool success = canvas->readPixels(srcRect, &wkbmp); in test_readpixels()
371 if (clippedRect.intersect(srcRect)) { in test_readpixels()
411 const SkIRect& srcRect = gReadPixelsTestRects[rect]; in test_readpixels_texture() local
415 init_bitmap(&bmp, srcRect, bmi, in test_readpixels_texture()
433 bool success = texture->readPixels(srcRect.fLeft, srcRect.fTop, bmp.width(), in test_readpixels_texture()
437 check_read(reporter, bmp, srcRect.fLeft, srcRect.fTop, in test_readpixels_texture()