Don't tessellate paths that have user stencil settings

This would require careful handling of the stencil that we have not
yet thought through.

Bug: skia:10419
Change-Id: I78a652309ae3469b64a28d6d96b06384e608695e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344376
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Chris Dalton 2020-12-14 19:04:55 -07:00 committed by Skia Commit-Bot
parent f2876b0b9e
commit 2078cbe3d4

View File

@ -128,7 +128,8 @@ GrPathRenderer::CanDrawPath GrTessellationPathRenderer::onCanDrawPath(
if (shape.style().hasPathEffect() ||
args.fViewMatrix->hasPerspective() ||
shape.style().strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style ||
shape.inverseFilled()) {
shape.inverseFilled() ||
args.fHasUserStencilSettings) {
return CanDrawPath::kNo;
}
if (GrAAType::kCoverage == args.fAAType) {