Lines Matching refs:clippedSrcRect
102 * width/height). Returns false otherwise. The clipped values are returned in clippedSrcRect and
109 SkIRect* clippedSrcRect,
111 *clippedSrcRect = srcRect;
115 if (clippedSrcRect->fLeft < 0) {
116 clippedDstPoint->fX -= clippedSrcRect->fLeft;
117 clippedSrcRect->fLeft = 0;
120 clippedSrcRect->fLeft -= clippedDstPoint->fX;
125 if (clippedSrcRect->fTop < 0) {
126 clippedDstPoint->fY -= clippedSrcRect->fTop;
127 clippedSrcRect->fTop = 0;
130 clippedSrcRect->fTop -= clippedDstPoint->fY;
135 if (clippedSrcRect->fRight > srcSize.width()) {
136 clippedSrcRect->fRight = srcSize.width();
138 if (clippedDstPoint->fX + clippedSrcRect->width() > dstSize.width()) {
139 clippedSrcRect->fRight = clippedSrcRect->fLeft + dstSize.width() - clippedDstPoint->fX;
143 if (clippedSrcRect->fBottom > srcSize.height()) {
144 clippedSrcRect->fBottom = srcSize.height();
146 if (clippedDstPoint->fY + clippedSrcRect->height() > dstSize.height()) {
147 clippedSrcRect->fBottom = clippedSrcRect->fTop + dstSize.height() - clippedDstPoint->fY;
152 return !clippedSrcRect->isEmpty();