Index: include/core/SkShader.h |
diff --git a/include/core/SkShader.h b/include/core/SkShader.h |
index 9b48697d20ae4e673951dfb351cba7a714782abb..97160a4f2511f909d2c8adc0f8ed3484287d22ac 100644 |
--- a/include/core/SkShader.h |
+++ b/include/core/SkShader.h |
@@ -346,9 +346,18 @@ public: |
#endif |
////////////////////////////////////////////////////////////////////////// |
- // Factory methods for stock shaders |
+ // Methods to create combinations or variants of shaders |
/** |
+ * Return a shader that will apply the specified localMatrix to this shader. |
+ * The specified matrix will be applied before any matrix associated with this shader. |
+ */ |
+ SkShader* newWithLocalMatrix(const SkMatrix&) const; |
+ |
+ ////////////////////////////////////////////////////////////////////////// |
+ // Factory methods for stock shaders |
+ |
+ /** |
* Call this to create a new "empty" shader, that will not draw anything. |
*/ |
static SkShader* CreateEmptyShader(); |
@@ -399,14 +408,6 @@ public: |
const SkRect* tile); |
/** |
- * Return a shader that will apply the specified localMatrix to the proxy shader. |
- * The specified matrix will be applied before any matrix associated with the proxy. |
- * |
- * Note: ownership of the proxy is not transferred (though a ref is taken). |
- */ |
- static SkShader* CreateLocalMatrixShader(SkShader* proxy, const SkMatrix& localMatrix); |
- |
- /** |
* If this shader can be represented by another shader + a localMatrix, return that shader |
* and, if not NULL, the localMatrix. If not, return NULL and ignore the localMatrix parameter. |
* |