aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2015-12-30 13:39:41 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-30 13:39:41 -0800
commitf880e45e92fe612bafbf745da96e209220cee8da (patch)
tree96d9a4038013ffd11948c6f7a03c97bce2a8d538 /include/core
parente3c2f80006e766eb7e99bc64911243346b3ac6d0 (diff)
change factory to method, to parallel pattern in imagefilters. no functionality change.
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkShader.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 9b48697d20..97160a4f25 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.
*