Don't use the tessellator if caps.avoidStencilBuffers is set

Bug: skia:10419
Change-Id: Iff07133e2a81b4af4f76f919149dee5f56e5cb7d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/350336
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
Chris Dalton 2021-01-05 13:16:04 -07:00 committed by Skia Commit-Bot
parent c1ac0637c5
commit 4bf7c21571

View File

@ -127,7 +127,8 @@ void GrTessellationPathRenderer::initAtlasFlags(GrRecordingContext* rContext) {
GrPathRenderer::CanDrawPath GrTessellationPathRenderer::onCanDrawPath(
const CanDrawPathArgs& args) const {
const GrStyledShape& shape = *args.fShape;
if (shape.style().hasPathEffect() ||
if (args.fCaps->avoidStencilBuffers() ||
shape.style().hasPathEffect() ||
args.fViewMatrix->hasPerspective() ||
shape.style().strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style ||
shape.inverseFilled() ||