Lines Matching refs:srcRect
236 auto srcRect = SkIRect::MakePtSize(pt, dst.dimensions()); in readPixels() local
241 srcRect, in readPixels()
515 SkIRect srcRect = SkIRect::MakeSize(srcBase.dimensions()); in internalWritePixels() local
517 if (!this->copy(std::move(tempProxy), srcRect, dstPoint)) { in internalWritePixels()
591 const SkIRect& srcRect, in asyncRescaleAndReadPixels() argument
614 bool needsRescale = srcRect.size() != info.dimensions() || in asyncRescaleAndReadPixels()
638 int x = srcRect.fLeft; in asyncRescaleAndReadPixels()
639 int y = srcRect.fTop; in asyncRescaleAndReadPixels()
642 tempFC = this->rescale(tempInfo, kTopLeft_GrSurfaceOrigin, srcRect, in asyncRescaleAndReadPixels()
737 const SkIRect& srcRect, in asyncRescaleAndReadPixelsYUV420() argument
746 SkASSERT(srcRect.fLeft >= 0 && srcRect.fRight <= this->width()); in asyncRescaleAndReadPixelsYUV420()
747 SkASSERT(srcRect.fTop >= 0 && srcRect.fBottom <= this->height()); in asyncRescaleAndReadPixelsYUV420()
768 int x = srcRect.fLeft; in asyncRescaleAndReadPixelsYUV420()
769 int y = srcRect.fTop; in asyncRescaleAndReadPixelsYUV420()
770 bool needsRescale = srcRect.size() != dstSize || in asyncRescaleAndReadPixelsYUV420()
781 srcRect, in asyncRescaleAndReadPixelsYUV420()
797 srcRect, in asyncRescaleAndReadPixelsYUV420()
1037 SkIRect srcRect, in copy() argument
1040 src->dimensions(), &srcRect)) { in copy()
1044 SkIRect dstRect = SkIRect::MakePtSize(dstPoint, srcRect.size()); in copy()
1045 return this->copyScaled(src, srcRect, dstRect, GrSamplerState::Filter::kNearest); in copy()
1049 SkIRect srcRect, in copyScaled() argument
1064 if (!caps->canCopySurface(this->asSurfaceProxy(), dstRect, src.get(), srcRect)) { in copyScaled()
1080 dstRect.width() >= srcRect.width() && in copyScaled()
1081 srcRect.fRight == src->width() && in copyScaled()
1082 srcRect.fRight < src->backingStoreDimensions().width(); in copyScaled()
1084 dstRect.height() >= srcRect.height() && in copyScaled()
1085 srcRect.fBottom == src->height() && in copyScaled()
1086 srcRect.fBottom < src->backingStoreDimensions().height(); in copyScaled()
1091 dstRect.width() > srcRect.width() && in copyScaled()
1092 srcRect.fRight == src->width() && in copyScaled()
1093 srcRect.fRight < src->backingStoreDimensions().width(); in copyScaled()
1095 dstRect.height() > srcRect.height() && in copyScaled()
1096 srcRect.fBottom == src->height() && in copyScaled()
1097 srcRect.fBottom < src->backingStoreDimensions().height(); in copyScaled()
1112 srcRect, in copyScaled()
1119 SkIRect srcRect, in rescale() argument
1130 srcRect, in rescale()
1140 SkIRect srcRect, in rescaleInto() argument
1160 auto ensureTexturable = [this](GrSurfaceProxyView texView, SkIRect srcRect) { in rescaleInto() argument
1167 srcRect, in rescaleInto()
1173 srcRect = SkIRect::MakeSize(srcRect.size()); in rescaleInto()
1176 return std::make_pair(std::move(texView), srcRect); in rescaleInto()
1180 if (finalSize == srcRect.size()) { in rescaleInto()
1195 std::tie(texView, srcRect) = ensureTexturable(texView, srcRect); in rescaleInto()
1204 srcRect.size()); in rescaleInto()
1216 SkMatrix::Translate(srcRect.topLeft()), in rescaleInto()
1226 srcRect = SkIRect::MakeSize(srcRect.size()); in rescaleInto()
1232 if (srcRect.width() > finalSize.width()) { in rescaleInto()
1233 nextDims.fWidth = std::max((srcRect.width() + 1)/2, finalSize.width()); in rescaleInto()
1234 } else if (srcRect.width() < finalSize.width()) { in rescaleInto()
1235 nextDims.fWidth = std::min(srcRect.width()*2, finalSize.width()); in rescaleInto()
1237 if (srcRect.height() > finalSize.height()) { in rescaleInto()
1238 nextDims.fHeight = std::max((srcRect.height() + 1)/2, finalSize.height()); in rescaleInto()
1239 } else if (srcRect.height() < finalSize.height()) { in rescaleInto()
1240 nextDims.fHeight = std::min(srcRect.height()*2, finalSize.height()); in rescaleInto()
1267 std::tie(texView, srcRect) = ensureTexturable(texView, srcRect); in rescaleInto()
1272 if (nextDims.width() == srcRect.width()) { in rescaleInto()
1274 } else if (nextDims.height() == srcRect.height()) { in rescaleInto()
1284 SkRect::Make(srcRect), in rescaleInto()
1293 !stepDst->copyScaled(texView.refProxy(), srcRect, stepDstRect, filter)) { in rescaleInto()
1296 std::tie(texView, srcRect) = ensureTexturable(texView, srcRect); in rescaleInto()
1300 auto srcRectF = SkRect::Make(srcRect); in rescaleInto()
1317 stepDst->fillRectToRectWithFP(srcRect, stepDstRect, std::move(fp)); in rescaleInto()
1321 srcRect = SkIRect::MakeSize(nextDims); in rescaleInto()
1322 } while (srcRect.size() != finalSize); in rescaleInto()
1370 auto srcRect = rect; in transferPixels() local
1373 srcRect = SkIRect::MakeLTRB(rect.fLeft, this->height() - rect.fBottom, rect.fRight, in transferPixels()
1376 this->drawingManager()->newTransferFromRenderTask(this->asSurfaceProxyRef(), srcRect, in transferPixels()