| Index: include/core/SkShader.h
|
| diff --git a/include/core/SkShader.h b/include/core/SkShader.h
|
| index 33ac8db6bcd0f5c945d666ff94cec96253b1b9e3..1f80ea1c09e7c1d596bfd7b626dbb1a3b128ec4a 100644
|
| --- a/include/core/SkShader.h
|
| +++ b/include/core/SkShader.h
|
| @@ -310,7 +310,7 @@ public:
|
|
|
| virtual bool asACompose(ComposeRec*) const { return false; }
|
|
|
| -
|
| +#if SK_SUPPORT_GPU
|
| /**
|
| * Returns a GrFragmentProcessor that implements the shader for the GPU backend. NULL is
|
| * returned if there is no GPU implementation.
|
| @@ -324,11 +324,12 @@ public:
|
| * The returned GrFragmentProcessor should expect an unpremultiplied input color and
|
| * produce a premultiplied output.
|
| */
|
| - virtual const GrFragmentProcessor* asFragmentProcessor(GrContext*,
|
| + virtual sk_sp<GrFragmentProcessor> asFragmentProcessor(GrContext*,
|
| const SkMatrix& viewMatrix,
|
| const SkMatrix* localMatrix,
|
| SkFilterQuality,
|
| SkSourceGammaTreatment) const;
|
| +#endif
|
|
|
| /**
|
| * If the shader can represent its "average" luminance in a single color, return true and
|
|
|