Home | History | Annotate | Download | only in gpu

Lines Matching full:clippedsrcrect

821                                SkIRect* clippedSrcRect,
823 *clippedSrcRect = srcRect;
827 if (clippedSrcRect->fLeft < 0) {
828 clippedDstPoint->fX -= clippedSrcRect->fLeft;
829 clippedSrcRect->fLeft = 0;
832 clippedSrcRect->fLeft -= clippedDstPoint->fX;
837 if (clippedSrcRect->fTop < 0) {
838 clippedDstPoint->fY -= clippedSrcRect->fTop;
839 clippedSrcRect->fTop = 0;
842 clippedSrcRect->fTop -= clippedDstPoint->fY;
847 if (clippedSrcRect->fRight > src->width()) {
848 clippedSrcRect->fRight = src->width();
850 if (clippedDstPoint->fX + clippedSrcRect->width() > dst->width()) {
851 clippedSrcRect->fRight = clippedSrcRect->fLeft + dst->width() - clippedDstPoint->fX;
855 if (clippedSrcRect->fBottom > src->height()) {
856 clippedSrcRect->fBottom = src->height();
858 if (clippedDstPoint->fY + clippedSrcRect->height() > dst->height()) {
859 clippedSrcRect->fBottom = clippedSrcRect->fTop + dst->height() - clippedDstPoint->fY;
864 return !clippedSrcRect->isEmpty();
875 SkIRect clippedSrcRect;
882 &clippedSrcRect,
888 bool result = this->onCopySurface(dst, src, clippedSrcRect, clippedDstPoint);
889 SkASSERT(result == this->canCopySurface(dst, src, clippedSrcRect, clippedDstPoint));
900 SkIRect clippedSrcRect;
907 &clippedSrcRect,
911 return this->onCanCopySurface(dst, src, clippedSrcRect, clippedDstPoint);