diff options
Diffstat (limited to 'src/gpu/GrRenderTargetContext.cpp')
-rw-r--r-- | src/gpu/GrRenderTargetContext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrRenderTargetContext.cpp b/src/gpu/GrRenderTargetContext.cpp index a40473f566..1a1f6a5835 100644 --- a/src/gpu/GrRenderTargetContext.cpp +++ b/src/gpu/GrRenderTargetContext.cpp @@ -744,7 +744,7 @@ void GrRenderTargetContext::fillRectToRect(const GrClip& clip, sk_sp<GrDrawOp> op(GrAAFillRectBatch::CreateWithLocalRect(paint.getColor(), viewMatrix, croppedRect, croppedLocalRect)); GrPipelineBuilder pipelineBuilder(paint, aaType); - this->addDrawOp(pipelineBuilder, clip, op.get()); + this->addDrawOp(pipelineBuilder, clip, std::move(op)); return; } @@ -1584,11 +1584,11 @@ void GrRenderTargetContext::internalDrawPath(const GrClip& clip, } void GrRenderTargetContext::addDrawOp(const GrPipelineBuilder& pipelineBuilder, const GrClip& clip, - GrDrawOp* op) { + sk_sp<GrDrawOp> op) { ASSERT_SINGLE_OWNER RETURN_IF_ABANDONED SkDEBUGCODE(this->validate();) GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrRenderTargetContext::addDrawOp"); - this->getOpList()->addDrawOp(pipelineBuilder, this, clip, sk_ref_sp(op)); + this->getOpList()->addDrawOp(pipelineBuilder, this, clip, std::move(op)); } |