Lines Matching refs:srcRect
175 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh);
177 if (!clippedSrcRect.intersect(srcRect)) {
183 int devx = bx + srcRect.fLeft;
184 int devy = by + srcRect.fTop;
213 int devx = bx + srcRect.fLeft;
214 int devy = by + srcRect.fTop;
320 bool read_should_succeed(const SkIRect& srcRect, const SkImageInfo& dstInfo,
322 return SkIRect::Intersects(srcRect, DEV_RECT) && SkImageInfoValidConversion(dstInfo, srcInfo);
330 const SkIRect& srcRect = gReadPixelsTestRects[rect];
334 init_bitmap(&bmp, srcRect, tightRB, gReadPixelsConfigs[c].fColorType,
344 bool success = surface->readPixels(bmp, srcRect.fLeft, srcRect.fTop);
349 bool expectSuccess = read_should_succeed(srcRect, bmp.info(), surfaceInfo);
359 check_read(reporter, bmp, srcRect.fLeft, srcRect.fTop, success,