Move user stencil settings from GrPipeline to GrProgramInfo
Bug: skia:10419
Change-Id: If11d28f6d9348ba0011825f719123c09f0103603
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319481
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrOpsRenderPass.cpp b/src/gpu/GrOpsRenderPass.cpp
index cd329de..4dde2cc 100644
--- a/src/gpu/GrOpsRenderPass.cpp
+++ b/src/gpu/GrOpsRenderPass.cpp
@@ -77,8 +77,8 @@
SkASSERT(this->gpu()->caps()->wireframeSupport());
}
if (this->gpu()->caps()->twoSidedStencilRefsAndMasksMustMatch() &&
- programInfo.pipeline().isStencilEnabled()) {
- const GrUserStencilSettings* stencil = programInfo.pipeline().getUserStencil();
+ programInfo.isStencilEnabled()) {
+ const GrUserStencilSettings* stencil = programInfo.userStencilSettings();
if (stencil->isTwoSided(programInfo.pipeline().hasStencilClip())) {
SkASSERT(stencil->fCCWFace.fRef == stencil->fCWFace.fRef);
SkASSERT(stencil->fCCWFace.fTestMask == stencil->fCWFace.fTestMask);