Lines Matching refs:clippedDstPoint
17 SkIPoint* clippedDstPoint) { in ClipSrcRectAndDstPoint() argument
19 *clippedDstPoint = dstPoint; in ClipSrcRectAndDstPoint()
23 clippedDstPoint->fX -= clippedSrcRect->fLeft; in ClipSrcRectAndDstPoint()
26 if (clippedDstPoint->fX < 0) { in ClipSrcRectAndDstPoint()
27 clippedSrcRect->fLeft -= clippedDstPoint->fX; in ClipSrcRectAndDstPoint()
28 clippedDstPoint->fX = 0; in ClipSrcRectAndDstPoint()
33 clippedDstPoint->fY -= clippedSrcRect->fTop; in ClipSrcRectAndDstPoint()
36 if (clippedDstPoint->fY < 0) { in ClipSrcRectAndDstPoint()
37 clippedSrcRect->fTop -= clippedDstPoint->fY; in ClipSrcRectAndDstPoint()
38 clippedDstPoint->fY = 0; in ClipSrcRectAndDstPoint()
45 if (clippedDstPoint->fX + clippedSrcRect->width() > dst->width()) { in ClipSrcRectAndDstPoint()
46 clippedSrcRect->fRight = clippedSrcRect->fLeft + dst->width() - clippedDstPoint->fX; in ClipSrcRectAndDstPoint()
53 if (clippedDstPoint->fY + clippedSrcRect->height() > dst->height()) { in ClipSrcRectAndDstPoint()
54 clippedSrcRect->fBottom = clippedSrcRect->fTop + dst->height() - clippedDstPoint->fY; in ClipSrcRectAndDstPoint()
68 SkIPoint clippedDstPoint; in Create() local
70 if (!ClipSrcRectAndDstPoint(dst, src, srcRect, dstPoint, &clippedSrcRect, &clippedDstPoint)) { in Create()
73 return new GrCopySurfaceBatch(dst, src, clippedSrcRect, clippedDstPoint); in Create()