| Index: src/gpu/effects/GrConvexPolyEffect.h
|
| diff --git a/src/gpu/effects/GrConvexPolyEffect.h b/src/gpu/effects/GrConvexPolyEffect.h
|
| index 316f1117bbe104e2be911cf611c37577c7017622..8fc76feb5b0384ce0df8bc3b972bfc54a5388a81 100644
|
| --- a/src/gpu/effects/GrConvexPolyEffect.h
|
| +++ b/src/gpu/effects/GrConvexPolyEffect.h
|
| @@ -38,12 +38,12 @@ public:
|
| * have to modify the effect/shaderbuilder interface to make it possible (e.g. give access
|
| * to the view matrix or untransformed positions in the fragment shader).
|
| */
|
| - static GrFragmentProcessor* Create(GrPrimitiveEdgeType edgeType, int n,
|
| - const SkScalar edges[]) {
|
| + static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType edgeType, int n,
|
| + const SkScalar edges[]) {
|
| if (n <= 0 || n > kMaxEdges || kHairlineAA_GrProcessorEdgeType == edgeType) {
|
| return nullptr;
|
| }
|
| - return new GrConvexPolyEffect(edgeType, n, edges);
|
| + return sk_sp<GrFragmentProcessor>(new GrConvexPolyEffect(edgeType, n, edges));
|
| }
|
|
|
| /**
|
| @@ -51,13 +51,13 @@ public:
|
| * inverse filled, or has too many edges, this will return nullptr. If offset is non-nullptr, then
|
| * the path is translated by the vector.
|
| */
|
| - static GrFragmentProcessor* Create(GrPrimitiveEdgeType, const SkPath&,
|
| - const SkVector* offset = nullptr);
|
| + static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkPath&,
|
| + const SkVector* offset = nullptr);
|
|
|
| /**
|
| * Creates an effect that fills inside the rect with AA edges..
|
| */
|
| - static GrFragmentProcessor* Create(GrPrimitiveEdgeType, const SkRect&);
|
| + static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkRect&);
|
|
|
| virtual ~GrConvexPolyEffect();
|
|
|
|
|