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