diff options
Diffstat (limited to 'src/gpu/GrPipeline.cpp')
-rw-r--r-- | src/gpu/GrPipeline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp index 6608d7c7d2..3f68fe088c 100644 --- a/src/gpu/GrPipeline.cpp +++ b/src/gpu/GrPipeline.cpp @@ -28,7 +28,7 @@ GrPipeline::GrPipeline(const InitArgs& args, if (appliedClip.hasStencilClip()) { fFlags |= kHasStencilClip_Flag; } - if (appliedClip.scissorState().enabled()) { + if (appliedClip.scissorState().scissorTest() == GrScissorTest::kEnabled) { fFlags |= kScissorEnabled_Flag; } @@ -99,7 +99,7 @@ GrXferBarrierType GrPipeline::xferBarrierType(const GrCaps& caps) const { return this->getXferProcessor().xferBarrierType(caps); } -GrPipeline::GrPipeline(GrRenderTargetProxy* proxy, ScissorState scissorState, SkBlendMode blendmode) +GrPipeline::GrPipeline(GrRenderTargetProxy* proxy, GrScissorTest scissorTest, SkBlendMode blendmode) : fProxy(proxy) , fWindowRectsState() , fUserStencilSettings(&GrUserStencilSettings::kUnused) @@ -108,7 +108,7 @@ GrPipeline::GrPipeline(GrRenderTargetProxy* proxy, ScissorState scissorState, Sk , fFragmentProcessors() , fNumColorProcessors(0) { SkASSERT(proxy); - if (scissorState) { + if (scissorTest == GrScissorTest::kEnabled) { fFlags |= kScissorEnabled_Flag; } } |