• Home
  • Raw
  • Download

Lines Matching refs:srcRect

194                 auto srcRect = SkIRect::MakePtSize(pt, dst.dimensions());  in readPixels()  local
199 srcRect, in readPixels()
469 SkIRect srcRect = SkIRect::MakeSize(srcBase.dimensions()); in internalWritePixels() local
471 if (!this->copy(std::move(tempProxy), srcRect, dstPoint)) { in internalWritePixels()
545 const SkIRect& srcRect, in asyncRescaleAndReadPixels() argument
568 bool needsRescale = srcRect.size() != info.dimensions() || in asyncRescaleAndReadPixels()
598 int x = srcRect.fLeft; in asyncRescaleAndReadPixels()
599 int y = srcRect.fTop; in asyncRescaleAndReadPixels()
601 tempFC = this->rescale(info, kTopLeft_GrSurfaceOrigin, srcRect, rescaleGamma, rescaleMode); in asyncRescaleAndReadPixels()
792 const SkIRect& srcRect, in asyncRescaleAndReadPixelsYUV420() argument
798 SkASSERT(srcRect.fLeft >= 0 && srcRect.fRight <= this->width()); in asyncRescaleAndReadPixelsYUV420()
799 SkASSERT(srcRect.fTop >= 0 && srcRect.fBottom <= this->height()); in asyncRescaleAndReadPixelsYUV420()
820 int x = srcRect.fLeft; in asyncRescaleAndReadPixelsYUV420()
821 int y = srcRect.fTop; in asyncRescaleAndReadPixelsYUV420()
822 bool needsRescale = srcRect.size() != dstSize || in asyncRescaleAndReadPixelsYUV420()
833 srcRect, in asyncRescaleAndReadPixelsYUV420()
848 srcRect, in asyncRescaleAndReadPixelsYUV420()
1036 SkIRect srcRect, in copy() argument
1052 if (!caps->canCopySurface(this->asSurfaceProxy(), src.get(), srcRect, dstPoint)) { in copy()
1057 srcRect, in copy()
1065 SkIRect srcRect, in rescale() argument
1076 srcRect, in rescale()
1086 SkIRect srcRect, in rescaleInto() argument
1107 texView = GrSurfaceProxyView::Copy(fContext, std::move(texView), GrMipmapped::kNo, srcRect, in rescaleInto()
1113 srcRect = SkIRect::MakeSize(srcRect.size()); in rescaleInto()
1117 if (finalSize == srcRect.size()) { in rescaleInto()
1136 srcRect.size()); in rescaleInto()
1148 SkMatrix::Translate(srcRect.topLeft()), in rescaleInto()
1158 srcRect = SkIRect::MakeSize(srcRect.size()); in rescaleInto()
1164 if (srcRect.width() > finalSize.width()) { in rescaleInto()
1165 nextDims.fWidth = std::max((srcRect.width() + 1)/2, finalSize.width()); in rescaleInto()
1166 } else if (srcRect.width() < finalSize.width()) { in rescaleInto()
1167 nextDims.fWidth = std::min(srcRect.width()*2, finalSize.width()); in rescaleInto()
1169 if (srcRect.height() > finalSize.height()) { in rescaleInto()
1170 nextDims.fHeight = std::max((srcRect.height() + 1)/2, finalSize.height()); in rescaleInto()
1171 } else if (srcRect.height() < finalSize.height()) { in rescaleInto()
1172 nextDims.fHeight = std::min(srcRect.height()*2, finalSize.height()); in rescaleInto()
1195 if (nextDims.width() == srcRect.width()) { in rescaleInto()
1197 } else if (nextDims.height() == srcRect.height()) { in rescaleInto()
1207 SkRect::Make(srcRect), in rescaleInto()
1214 auto srcRectF = SkRect::Make(srcRect); in rescaleInto()
1226 stepDst->fillRectToRectWithFP(srcRect, stepDstRect, std::move(fp)); in rescaleInto()
1229 srcRect = SkIRect::MakeSize(nextDims); in rescaleInto()
1230 } while (srcRect.size() != finalSize); in rescaleInto()
1275 auto srcRect = rect; in transferPixels() local
1278 srcRect = SkIRect::MakeLTRB(rect.fLeft, this->height() - rect.fBottom, rect.fRight, in transferPixels()
1281 this->drawingManager()->newTransferFromRenderTask(this->asSurfaceProxyRef(), srcRect, in transferPixels()