Index: include/core/SkShader.h |
diff --git a/include/core/SkShader.h b/include/core/SkShader.h |
index 8018cd44fff37dfa9858d6e6c0d31cf39e2cb895..7cfb53619aa973b5ccc7c429451f73240f3e4106 100644 |
--- a/include/core/SkShader.h |
+++ b/include/core/SkShader.h |
@@ -384,8 +384,12 @@ public: |
* |
* The GrContext may be used by the effect to create textures. The GPU device does not |
* call createContext. Instead we pass the SkPaint here in case the shader needs paint info. |
+ * |
+ * A view matrix is always required to create the correct GrFragmentProcessor. Some shaders |
+ * may also use the optional localMatrix to define a matrix relevant only for sampling. |
*/ |
- virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*, GrColor*, |
+ virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix& viewM, |
+ const SkMatrix* localMatrix, GrColor*, |
GrFragmentProcessor**) const; |
/** |