Lines Matching defs:clip
162 SkRegion RectangleList::convertToRegion(const SkRegion& clip) const {
169 rectangleListAsRegion.setPath(rectPathTransformed, clip);
172 rectRegion.setPath(rectPathTransformed, clip);
268 // The only way this occurs is by a clip setting operation.
303 // all clip areas that can be represented by a region.
363 // Only initial clip-to-viewport observed, so no serialization of clip necessary
423 // if either is empty, clip is empty
512 void ClipArea::applyClip(const ClipBase* clip, const Matrix4& transform) {
513 if (!clip) return; // nothing to do
515 if (CC_LIKELY(clip->mode == ClipMode::Rectangle)) {
516 clipRectWithTransform(clip->rect, &transform, SkRegion::kIntersect_Op);
517 } else if (CC_LIKELY(clip->mode == ClipMode::RectangleList)) {
518 auto&& rectList = getRectList(clip);
526 SkRegion region(getRegion(clip));