Home | History | Annotate | Download | only in gpu

Lines Matching refs:srcRect

976 static inline int get_tile_count(const SkIRect& srcRect, int tileSize)  {
977 int tilesX = (srcRect.fRight / tileSize) - (srcRect.fLeft / tileSize) + 1;
978 int tilesY = (srcRect.fBottom / tileSize) - (srcRect.fTop / tileSize) + 1;
1128 SkRect srcRect;
1132 srcRect.set(0, 0, SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height()));
1135 srcRect = *srcRectPtr;
1136 if (srcRect.fLeft <= 0 && srcRect.fTop <= 0 &&
1137 srcRect.fRight >= bitmap.width() && srcRect.fBottom >= bitmap.height()) {
1150 // already accounted for in 'm' and 'srcRect'. In clamp mode we need to chop out
1151 // the desired portion of the bitmap and then update 'm' and 'srcRect' to
1155 srcRect.roundOut(&iSrc);
1164 srcRect.offset(-offset.fX, -offset.fY);
1182 this->drawRect(transformedDraw, srcRect, paintWithTexture);
1243 this->drawTiledBitmap(bitmap, srcRect, clippedSrcRect, params, paint, flags, tileSize,
1247 this->internalDrawBitmap(bitmap, srcRect, params, paint, flags, doBicubic);
1254 const SkRect& srcRect,
1277 if (!tileR.intersect(srcRect)) {
1298 // tile on edges interior to "srcRect" (i.e., we want to
1300 srcRect.roundOut(&iClampRect);
1319 static bool has_aligned_samples(const SkRect& srcRect,
1326 SkScalarAbs(transformedRect.width() - srcRect.width()) <
1328 SkScalarAbs(transformedRect.height() - srcRect.height()) <
1335 static bool may_color_bleed(const SkRect& srcRect,
1340 SkASSERT(!has_aligned_samples(srcRect, transformedRect));
1341 SkRect innerSrcRect(srcRect), innerTransformedRect,
1369 const SkRect& srcRect,
1383 SkRect dstRect(srcRect);
1387 paintRect.setLTRB(SkScalarMul(srcRect.fLeft, wInv),
1388 SkScalarMul(srcRect.fTop, hInv),
1389 SkScalarMul(srcRect.fRight, wInv),
1390 SkScalarMul(srcRect.fBottom, hInv));
1397 needsTextureDomain = srcRect.width() < bitmap.width() ||
1398 srcRect.height() < bitmap.height();
1403 matrix.mapRect(&transformedRect, srcRect);
1405 if (has_aligned_samples(srcRect, transformedRect)) {
1410 needsTextureDomain = may_color_bleed(srcRect, transformedRect, matrix);
1420 if (srcRect.width() > SK_Scalar1) {
1427 if (srcRect.height() > SK_Scalar1) {
1617 SkRect srcRect = SkRect::MakeWH(SK_Scalar1 * w / devTex->width(),
1620 fContext->drawRectToRect(grPaint, dstRect, srcRect);