Lines Matching defs:srcRect
731 static inline int get_tile_count(const SkIRect& srcRect, int tileSize) {
732 int tilesX = (srcRect.fRight / tileSize) - (srcRect.fLeft / tileSize) + 1;
733 int tilesY = (srcRect.fBottom / tileSize) - (srcRect.fTop / tileSize) + 1;
911 SkRect srcRect = SkRect::MakeIWH(bitmap.width(), bitmap.height());
933 if (this->shouldTileBitmap(bitmap, viewMatrix, params, &srcRect,
935 this->drawTiledBitmap(bitmap, viewMatrix, srcRect, clippedSrcRect, params, paint,
982 const SkRect& srcRect,
1024 if (!tileR.intersect(srcRect)) {
1037 tmpM.setTranslate(offset.fX - srcRect.fLeft, offset.fY - srcRect.fTop);
1049 // tile on edges interior to "srcRect" (i.e., we want to
1051 srcRect.roundOut(&iClampRect);
1085 const SkRect& srcRect,
1106 SkRect dstRect = {0, 0, srcRect.width(), srcRect.height() };
1110 paintRect.setLTRB(SkScalarMul(srcRect.fLeft, wInv),
1111 SkScalarMul(srcRect.fTop, hInv),
1112 SkScalarMul(srcRect.fRight, wInv),
1113 SkScalarMul(srcRect.fBottom, hInv));
1134 if (srcRect.width() > SK_Scalar1) {
1141 if (srcRect.height() > SK_Scalar1) {
1429 SkRect srcRect = SkRect::MakeWH(SK_Scalar1 * w / devTex->width(),
1432 fDrawContext->fillRectToRect(fClip, grPaint, SkMatrix::I(), dstRect, srcRect);