Lines Matching refs:crop
116 static bool intersectionIsRoundRect(const SkRect& bounds, const SkRect& crop, in intersectionIsRoundRect() argument
119 const bool leftEqual = bounds.fLeft == crop.fLeft; in intersectionIsRoundRect()
120 const bool topEqual = bounds.fTop == crop.fTop; in intersectionIsRoundRect()
121 const bool rightEqual = bounds.fRight == crop.fRight; in intersectionIsRoundRect()
122 const bool bottomEqual = bounds.fBottom == crop.fBottom; in intersectionIsRoundRect()
181 const SkRect crop = getSkRect(cropRect); in getBoundsAndClip() local
186 if (bounds == crop || crop.isEmpty()) { in getBoundsAndClip()
193 if (crop.contains(bounds)) { in getBoundsAndClip()
194 const auto insetCrop = crop.makeInset(cornerRadius.x, cornerRadius.y); in getBoundsAndClip()
200 if (intersectionIsRoundRect(bounds, crop, insetCrop, cornerRadius, radii)) { in getBoundsAndClip()
208 clip.setRectXY(crop, cornerRadius.x, cornerRadius.y); in getBoundsAndClip()