Lines Matching refs:srcRect
199 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in check_read() local
201 if (!clippedSrcRect.intersect(srcRect)) { in check_read()
207 int devx = bx + srcRect.fLeft; in check_read()
208 int devy = by + srcRect.fTop; in check_read()
237 int devx = bx + srcRect.fLeft; in check_read()
238 int devy = by + srcRect.fTop; in check_read()
344 bool read_should_succeed(const SkIRect& srcRect, const SkImageInfo& dstInfo, in read_should_succeed() argument
346 return SkIRect::Intersects(srcRect, DEV_RECT) && SkImageInfoValidConversion(dstInfo, srcInfo); in read_should_succeed()
354 const SkIRect& srcRect = gReadPixelsTestRects[rect]; in test_readpixels() local
358 init_bitmap(&bmp, srcRect, tightRB, gReadPixelsConfigs[c].fColorType, in test_readpixels()
368 bool success = surface->readPixels(bmp, srcRect.fLeft, srcRect.fTop); in test_readpixels()
373 bool expectSuccess = read_should_succeed(srcRect, bmp.info(), surfaceInfo); in test_readpixels()
383 check_read(reporter, bmp, srcRect.fLeft, srcRect.fTop, success, in test_readpixels()