Index: src/gpu/text/GrStencilAndCoverTextContext.cpp |
diff --git a/src/gpu/text/GrStencilAndCoverTextContext.cpp b/src/gpu/text/GrStencilAndCoverTextContext.cpp |
index c2c1c569e8eb915b1a77693aab6cde3b19ba58f8..b832e0cdd1bf41abe1b693c850296b6e88c327f6 100644 |
--- a/src/gpu/text/GrStencilAndCoverTextContext.cpp |
+++ b/src/gpu/text/GrStencilAndCoverTextContext.cpp |
@@ -585,15 +585,17 @@ void GrStencilAndCoverTextContext::TextRun::draw(GrContext* ctx, |
if (fInstanceData->count()) { |
pipelineBuilder->setState(GrPipelineBuilder::kHWAntialias_Flag, fFont.isAntiAlias()); |
- static constexpr GrStencilSettings kStencilPass( |
- kZero_StencilOp, |
- kKeep_StencilOp, |
- kNotEqual_StencilFunc, |
- 0xffff, |
- 0x0000, |
- 0xffff); |
- |
- *pipelineBuilder->stencil() = kStencilPass; |
+ static constexpr GrUserStencilSettings kCoverPass( |
+ GrUserStencilSettings::StaticInit< |
+ 0x0000, |
+ GrUserStencilTest::kNotEqual, // Stencil pass accounts for clip. |
+ 0xffff, |
+ GrUserStencilOp::kZero, |
+ GrUserStencilOp::kKeep, |
+ 0xffff>() |
+ ); |
+ |
+ pipelineBuilder->setUserStencil(&kCoverPass); |
SkAutoTUnref<GrPathRange> glyphs(this->createGlyphs(ctx)); |
if (fLastDrawnGlyphsID != glyphs->getUniqueID()) { |