aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2015-01-30 07:14:03 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-30 07:14:04 -0800
commit5d2fd4465b270ec42d123202e50c33543f9c2083 (patch)
tree2b72f5f157cf8d9d016d8e0974a5e4c09d940a46
parentc38796634347163e04423102d7cb575606da119f (diff)
Remove unused hasLocalMatrix.
This method is not called anywhere on Android or Chrome, and it has a FIXME that it may not be correct. A client can still getLocalMatrix().isIdentity() if they need this information. (It has the same FIXME, and perhaps we should revisit it. In the meantime, this convenience method is not needed.) Review URL: https://codereview.chromium.org/882443007
-rw-r--r--include/core/SkShader.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 1ae531e2e5..07d09b8ca2 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -47,14 +47,6 @@ public:
*/
const SkMatrix& getLocalMatrix() const { return fLocalMatrix; }
- /**
- * Returns true if the local matrix is not an identity matrix.
- *
- * FIXME: This can be incorrect for a Shader with its own local matrix
- * that is also wrapped via CreateLocalMatrixShader.
- */
- bool hasLocalMatrix() const { return !fLocalMatrix.isIdentity(); }
-
enum TileMode {
/** replicate the edge color if the shader draws outside of its
* original bounds