diff options
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r-- | src/gpu/GrDrawTarget.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index fc8c71b443..173617ebe6 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp @@ -221,25 +221,13 @@ void GrDrawTarget::reset() { fBatches.reset(); } -void GrDrawTarget::drawBatch(const GrPipelineBuilder& pipelineBuilder, - GrDrawBatch* batch, - const SkIRect* scissorRect) { +void GrDrawTarget::drawBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawBatch* batch) { // Setup clip GrPipelineBuilder::AutoRestoreStencil ars; GrAppliedClip clip; - - if (scissorRect) { - SkASSERT(GrClip::kWideOpen_ClipType == pipelineBuilder.clip().clipType()); - if (!fClipMaskManager->setupScissorClip(pipelineBuilder, &ars, *scissorRect, - &batch->bounds(), &clip)) { - return; - } - } else { - if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &batch->bounds(), &clip)) { - return; - } + if (!fClipMaskManager->setupClipping(pipelineBuilder, &ars, &batch->bounds(), &clip)) { + return; } - GrPipelineBuilder::AutoRestoreFragmentProcessorState arfps; if (clip.clipCoverageFragmentProcessor()) { arfps.set(&pipelineBuilder); |