diff options
Diffstat (limited to 'src/gpu/ops/GrDrawPathOp.cpp')
-rw-r--r-- | src/gpu/ops/GrDrawPathOp.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gpu/ops/GrDrawPathOp.cpp b/src/gpu/ops/GrDrawPathOp.cpp index 185b3c07f2..98a4775d5a 100644 --- a/src/gpu/ops/GrDrawPathOp.cpp +++ b/src/gpu/ops/GrDrawPathOp.cpp @@ -75,13 +75,16 @@ std::unique_ptr<GrDrawOp> GrDrawPathOp::Make(GrContext* context, } void GrDrawPathOp::onExecute(GrOpFlushState* state) { + GrAppliedClip appliedClip = state->detachAppliedClip(); + GrPipeline::FixedDynamicState fixedDynamicState(appliedClip.scissorState().rect()); GrPipeline pipeline(this->pipelineInitArgs(*state), this->detachProcessors(), - state->detachAppliedClip()); + std::move(appliedClip)); sk_sp<GrPathProcessor> pathProc(GrPathProcessor::Create(this->color(), this->viewMatrix())); GrStencilSettings stencil; init_stencil_pass_settings(*state, this->fillType(), &stencil); - state->gpu()->pathRendering()->drawPath(*pathProc, pipeline, stencil, fPath.get()); + state->gpu()->pathRendering()->drawPath(*pathProc, pipeline, fixedDynamicState, stencil, + fPath.get()); } ////////////////////////////////////////////////////////////////////////////// |