Index: src/core/SkLocalMatrixShader.h |
diff --git a/src/core/SkLocalMatrixShader.h b/src/core/SkLocalMatrixShader.h |
index 9c6a526f7b1356511be2373b79c336ff8a6f58f0..a145432a160b6a3654171c343d5f32015873f884 100644 |
--- a/src/core/SkLocalMatrixShader.h |
+++ b/src/core/SkLocalMatrixShader.h |
@@ -33,15 +33,28 @@ |
} |
#if SK_SUPPORT_GPU |
- const GrFragmentProcessor* asFragmentProcessor(GrContext* context, const SkMatrix& viewM, |
- const SkMatrix* localMatrix, SkFilterQuality fq, |
- GrProcessorDataManager* procDataManager) const override { |
+ |
+ virtual bool asFragmentProcessor(GrContext* context, const SkPaint& paint, |
+ const SkMatrix& viewM, const SkMatrix* localMatrix, |
+ GrColor* grColor, GrProcessorDataManager* procDataManager, |
+ GrFragmentProcessor** fp) const override { |
SkMatrix tmp = this->getLocalMatrix(); |
if (localMatrix) { |
tmp.preConcat(*localMatrix); |
} |
- return fProxyShader->asFragmentProcessor(context, viewM, &tmp, fq, procDataManager); |
+ return fProxyShader->asFragmentProcessor(context, paint, viewM, &tmp, grColor, |
+ procDataManager, fp); |
} |
+ |
+#else |
+ |
+ virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix&, |
+ const SkMatrix*, GrColor*, GrProcessorDataManager*, |
+ GrFragmentProcessor**) const override { |
+ SkDEBUGFAIL("Should not call in GPU-less build"); |
+ return false; |
+ } |
+ |
#endif |
SkShader* refAsALocalMatrixShader(SkMatrix* localMatrix) const override { |