Index: src/core/SkLocalMatrixShader.h |
diff --git a/src/core/SkLocalMatrixShader.h b/src/core/SkLocalMatrixShader.h |
index 3d590e43e60563d24924a75fc297c1bb01da1b8d..0d621a9ba8ff68cc77b3b0710d640470a6b024f3 100644 |
--- a/src/core/SkLocalMatrixShader.h |
+++ b/src/core/SkLocalMatrixShader.h |
@@ -12,6 +12,10 @@ |
#include "SkReadBuffer.h" |
#include "SkWriteBuffer.h" |
+#if SK_SUPPORT_GPU |
+#include "GrFragmentProcessor.h" |
+#endif |
+ |
class SkLocalMatrixShader : public SkShader { |
public: |
SkLocalMatrixShader(SkShader* proxy, const SkMatrix& localMatrix) |
@@ -24,7 +28,7 @@ public: |
} |
#if SK_SUPPORT_GPU |
- const GrFragmentProcessor* asFragmentProcessor( |
+ sk_sp<GrFragmentProcessor> asFragmentProcessor( |
bungeman-skia
2016/06/08 18:22:16
If the body of this were out of line, we could jus
|
GrContext* context, const SkMatrix& viewM, |
const SkMatrix* localMatrix, SkFilterQuality fq, |
SkSourceGammaTreatment gammaTreatment) const override { |