diff options
Diffstat (limited to 'src/gpu/ops/GrStencilPathOp.h')
-rw-r--r-- | src/gpu/ops/GrStencilPathOp.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/gpu/ops/GrStencilPathOp.h b/src/gpu/ops/GrStencilPathOp.h index 03dc7ee067..f21b524f2f 100644 --- a/src/gpu/ops/GrStencilPathOp.h +++ b/src/gpu/ops/GrStencilPathOp.h @@ -19,16 +19,17 @@ class GrStencilPathOp final : public GrOp { public: DEFINE_OP_CLASS_ID - static sk_sp<GrOp> Make(const SkMatrix& viewMatrix, - bool useHWAA, - GrPathRendering::FillType fillType, - bool hasStencilClip, - int numStencilBits, - const GrScissorState& scissor, - GrRenderTarget* renderTarget, - const GrPath* path) { - return sk_sp<GrOp>(new GrStencilPathOp(viewMatrix, useHWAA, fillType, hasStencilClip, - numStencilBits, scissor, renderTarget, path)); + static std::unique_ptr<GrOp> Make(const SkMatrix& viewMatrix, + bool useHWAA, + GrPathRendering::FillType fillType, + bool hasStencilClip, + int numStencilBits, + const GrScissorState& scissor, + GrRenderTarget* renderTarget, + const GrPath* path) { + return std::unique_ptr<GrOp>(new GrStencilPathOp(viewMatrix, useHWAA, fillType, + hasStencilClip, numStencilBits, scissor, + renderTarget, path)); } const char* name() const override { return "StencilPathOp"; } |