diff options
author | 2015-01-30 07:14:03 -0800 | |
---|---|---|
committer | 2015-01-30 07:14:04 -0800 | |
commit | 5d2fd4465b270ec42d123202e50c33543f9c2083 (patch) | |
tree | 2b72f5f157cf8d9d016d8e0974a5e4c09d940a46 | |
parent | c38796634347163e04423102d7cb575606da119f (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.h | 8 |
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 |