| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index ba0142edca02fba1f2c5d6ae51c9c53de36ac08e..cde600f5c274c2a854f798dd1f2131608e7c4d8f 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -145,11 +145,9 @@ void GrDrawTarget::reset() {
|
|
|
| void GrDrawTarget::drawBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawBatch* batch) {
|
| // Setup clip
|
| - GrScissorState scissorState;
|
| GrPipelineBuilder::AutoRestoreStencil ars;
|
| GrAppliedClip clip;
|
| - if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &scissorState, &batch->bounds(),
|
| - &clip)) {
|
| + if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &batch->bounds(), &clip)) {
|
| return;
|
| }
|
| GrPipelineBuilder::AutoRestoreFragmentProcessorState arfps;
|
| @@ -159,7 +157,7 @@ void GrDrawTarget::drawBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawBat
|
| }
|
|
|
| GrPipeline::CreateArgs args;
|
| - if (!this->installPipelineInDrawBatch(&pipelineBuilder, &scissorState, batch)) {
|
| + if (!this->installPipelineInDrawBatch(&pipelineBuilder, &clip.scissorState(), batch)) {
|
| return;
|
| }
|
|
|
| @@ -210,10 +208,9 @@ void GrDrawTarget::stencilPath(const GrPipelineBuilder& pipelineBuilder,
|
| SkASSERT(this->caps()->shaderCaps()->pathRenderingSupport());
|
|
|
| // Setup clip
|
| - GrScissorState scissorState;
|
| GrPipelineBuilder::AutoRestoreStencil ars;
|
| GrAppliedClip clip;
|
| - if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &scissorState, nullptr, &clip)) {
|
| + if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, nullptr, &clip)) {
|
| return;
|
| }
|
|
|
| @@ -231,7 +228,7 @@ void GrDrawTarget::stencilPath(const GrPipelineBuilder& pipelineBuilder,
|
|
|
| GrBatch* batch = GrStencilPathBatch::Create(viewMatrix,
|
| pipelineBuilder.isHWAntialias(),
|
| - stencilSettings, scissorState,
|
| + stencilSettings, clip.scissorState(),
|
| pipelineBuilder.getRenderTarget(),
|
| path);
|
| this->recordBatch(batch);
|
| @@ -270,11 +267,9 @@ void GrDrawTarget::drawPathBatch(const GrPipelineBuilder& pipelineBuilder,
|
| // handling stencil settings WRT interactions between pipeline(builder), clipmaskmanager, and
|
| // batches.
|
|
|
| - GrScissorState scissorState;
|
| GrPipelineBuilder::AutoRestoreStencil ars;
|
| GrAppliedClip clip;
|
| - if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &scissorState, &batch->bounds(),
|
| - &clip)) {
|
| + if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &batch->bounds(), &clip)) {
|
| return;
|
| }
|
|
|
| @@ -292,7 +287,7 @@ void GrDrawTarget::drawPathBatch(const GrPipelineBuilder& pipelineBuilder,
|
| batch->setStencilSettings(stencilSettings);
|
|
|
| GrPipeline::CreateArgs args;
|
| - if (!this->installPipelineInDrawBatch(&pipelineBuilder, &scissorState, batch)) {
|
| + if (!this->installPipelineInDrawBatch(&pipelineBuilder, &clip.scissorState(), batch)) {
|
| return;
|
| }
|
|
|
|
|