Lines Matching defs:srcRect
917 static inline int get_tile_count(const SkIRect& srcRect, int tileSize) {
918 int tilesX = (srcRect.fRight / tileSize) - (srcRect.fLeft / tileSize) + 1;
919 int tilesY = (srcRect.fBottom / tileSize) - (srcRect.fTop / tileSize) + 1;
1072 static bool has_aligned_samples(const SkRect& srcRect,
1079 SkScalarAbs(transformedRect.width() - srcRect.width()) <
1081 SkScalarAbs(transformedRect.height() - srcRect.height()) <
1088 static bool may_color_bleed(const SkRect& srcRect,
1093 SkASSERT(!has_aligned_samples(srcRect, transformedRect));
1094 SkRect innerSrcRect(srcRect), innerTransformedRect,
1114 const SkRect& srcRect,
1125 needsTextureDomain = srcRect.width() < width ||
1126 srcRect.height() < height;
1130 contextMatrix.mapRect(&transformedRect, srcRect);
1132 if (has_aligned_samples(srcRect, transformedRect)) {
1136 needsTextureDomain = may_color_bleed(srcRect, transformedRect, contextMatrix);
1151 SkRect srcRect;
1160 srcRect.set(0, 0, w, h);
1163 srcRect = *srcRectPtr;
1169 if (srcRect.fLeft <= 0 && srcRect.fTop <= 0 &&
1170 srcRect.fRight >= width && srcRect.fBottom >= height) {
1218 // already accounted for in 'm' and 'srcRect'. In clamp mode we need to chop out
1219 // the desired portion of the bitmap and then update 'm' and 'srcRect' to
1223 srcRect.roundOut(&iSrc);
1232 srcRect.offset(-offset.fX, -offset.fY);
1253 m.setScale(dstSize.fWidth / srcRect.width(),
1254 dstSize.fHeight / srcRect.height());
1309 this->drawTiledBitmap(bitmap, viewM, srcRect, clippedSrcRect, params, paint, flags,
1314 srcRect,
1320 srcRect,
1333 const SkRect& srcRect,
1361 if (!tileR.intersect(srcRect)) {
1374 tmpM.setTranslate(offset.fX - srcRect.fLeft, offset.fY - srcRect.fTop);
1386 // tile on edges interior to "srcRect" (i.e., we want to
1388 srcRect.roundOut(&iClampRect);
1399 srcRect,
1426 const SkRect& srcRect,
1441 SkRect dstRect = {0, 0, srcRect.width(), srcRect.height() };
1445 paintRect.setLTRB(SkScalarMul(srcRect.fLeft, wInv),
1446 SkScalarMul(srcRect.fTop, hInv),
1447 SkScalarMul(srcRect.fRight, wInv),
1448 SkScalarMul(srcRect.fBottom, hInv));
1455 if (srcRect.width() > SK_Scalar1) {
1462 if (srcRect.height() > SK_Scalar1) {
1698 SkRect srcRect = SkRect::MakeWH(SK_Scalar1 * w / devTex->width(),
1702 srcRect);