Lines Matching defs:clip
215 void PathSubRun::draw(const GrClip* clip,
247 sdc->recordingContext(), sdc, clip, runPaint, strikeToDevice, shape);
263 GrBlurUtils::drawShapeWithMaskFilter(sdc->recordingContext(), sdc, clip, runPaint,
475 makeAtlasTextOp(const GrClip* clip,
496 const SkMatrix& positionMatrix, SkIRect clip) const override;
597 void DirectMaskSubRun::draw(const GrClip* clip,
603 clip, viewMatrix, glyphRunList.origin(), paint, sdc, nullptr);
618 calculate_clip(const GrClip* clip, SkRect deviceBounds, SkRect glyphBounds) {
619 if (clip == nullptr && !deviceBounds.intersects(glyphBounds)) {
621 } else if (clip != nullptr) {
622 switch (auto result = clip->preApply(glyphBounds, GrAA::kNo); result.fEffect) {
635 // If fully within the clip, signal no clipping using the empty rect.
638 // Use the clipRect to clip the geometry.
652 DirectMaskSubRun::makeAtlasTextOp(const GrClip* clip,
662 // We can clip geometrically using clipRect and ignore clip when an axis-aligned rectangular
663 // non-AA clip is used. If clipRect is empty, and clip is nullptr, then there is no clipping
667 auto [clipMethod, clipRect] = calculate_clip(clip, deviceBounds, subRunBounds);
675 // GPU clip is not needed.
676 clip = nullptr;
679 // Use the the GPU clip; clipRect is ignored.
683 if (!clipRect.isEmpty()) { SkASSERT(clip == nullptr); }
706 return {clip, std::move(op)};
718 // The 99% case. No clip. Non-color only.
743 // Handle any combination of BW or color and clip or no clip.
748 SkIRect* clip = nullptr) {
755 if (clip == nullptr) {
764 if (!clip->containsNoEmptyCheck(devIRect)) {
765 if (SkIRect clipped; clipped.intersect(devIRect, *clip)) {
788 const SkMatrix& positionMatrix, SkIRect clip) const {
799 if (clip.isEmpty()) {
813 generalized_direct_2D(quadData((Quad*)vertexDst), color, integralOriginOffset, &clip);
817 generalized_direct_2D(quadData((Quad*)vertexDst), color, integralOriginOffset, &clip);
886 GrColor color, const SkMatrix& positionMatrix, SkIRect clip) const override;
952 void TransformedMaskSubRun::draw(const GrClip* clip,
958 clip, viewMatrix, glyphRunList.origin(), paint, sdc, nullptr);
965 TransformedMaskSubRun::makeAtlasTextOp(const GrClip* clip,
994 return {clip, std::move(op)};
1017 SkIRect clip) const {
1145 GrColor color, const SkMatrix& positionMatrix, SkIRect clip) const override;
1229 void SDFTSubRun::draw(const GrClip* clip,
1235 clip, viewMatrix, glyphRunList.origin(), paint, sdc, nullptr);
1270 SDFTSubRun::makeAtlasTextOp(const GrClip* clip,
1307 return {clip, std::move(op)};
1341 GrColor color, const SkMatrix& positionMatrix, SkIRect clip) const {
1703 const SkMatrix& positionMatrix, SkIRect clip) const override;
1786 DirectMaskSubRunNoCache::makeAtlasTextOp(const GrClip* clip,
1796 // We can clip geometrically using clipRect and ignore clip when an axis-aligned rectangular
1797 // non-AA clip is used. If clipRect is empty, and clip is nullptr, then there is no clipping
1800 auto [clipMethod, clipRect] = calculate_clip(clip, deviceBounds, fGlyphDeviceBounds);
1808 // GPU clip is not needed.
1809 clip = nullptr;
1812 // Use the the GPU clip; clipRect is ignored.
1816 if (!clipRect.isEmpty()) { SkASSERT(clip == nullptr); }
1842 return {clip, std::move(op)};
1854 // The 99% case. No clip. Non-color only.
1874 const SkMatrix& positionMatrix, SkIRect clip) const {
1881 if (clip.isEmpty()) {
1895 generalized_direct_2D(quadData((Quad*)vertexDst), color, {0,0}, &clip);
1899 generalized_direct_2D(quadData((Quad*)vertexDst), color, {0,0}, &clip);
1940 GrColor color, const SkMatrix& positionMatrix, SkIRect clip) const override;
2006 TransformedMaskSubRunNoCache::makeAtlasTextOp(const GrClip* clip,
2019 // We can clip geometrically using clipRect and ignore clip if we're not using SDFs or
2020 // transformed glyphs, and we have an axis-aligned rectangular non-AA clip.
2039 return {clip, std::move(op)};
2053 const SkMatrix& positionMatrix, SkIRect clip) const {
2166 GrColor color, const SkMatrix& positionMatrix, SkIRect clip) const override;
2246 SDFTSubRunNoCache::makeAtlasTextOp(const GrClip* clip,
2284 return {clip, std::move(op)};
2303 GrColor color, const SkMatrix& positionMatrix, SkIRect clip) const {
2329 const GrClip* clip,
2335 , fClip{clip}