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:
parent
c1ac0637c5
commit
4bf7c21571
@ -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() ||
|
||||
|
Loading…
Reference in New Issue
Block a user