Lines Matching defs:clamp
218 // 'clamp'. 'offset' is adjusted to remain positioned over the top-left corner
221 const SkIRect& clamp) {
224 int leftClampDelta = clamp.fLeft - iRect->fLeft;
227 iRect->fLeft = clamp.fLeft;
232 int topClampDelta = clamp.fTop - iRect->fTop;
235 iRect->fTop = clamp.fTop;
240 if (iRect->fRight > clamp.fRight) {
241 iRect->fRight = clamp.fRight;
243 if (iRect->fBottom > clamp.fBottom) {
244 iRect->fBottom = clamp.fBottom;
252 // Src and dst have been restricted to the image content. May need to clamp, no need to decal.
616 // In texture-domain/clamp mode we only want to expand the