aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkShader.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-09 15:19:48 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-09 15:19:48 +0000
commit5adad325c5fcbba08f43dc35487df193fc4f9f1f (patch)
tree35dd4ba7dd2848ce29831a9b042bfdc987e10c6c /include/core/SkShader.h
parentbbce730df9b43726ffe9b1cf7553b59434551306 (diff)
hide get/setLocalMatrix
BUG=skia: R=fmalita@google.com, dominikg@chromium.org, fmalita@chromium.org Author: reed@google.com Review URL: https://codereview.chromium.org/279563002 git-svn-id: http://skia.googlecode.com/svn/trunk@14675 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkShader.h')
-rw-r--r--include/core/SkShader.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 2f3764c0be..87e10ceb2f 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -38,14 +38,15 @@ public:
virtual ~SkShader();
/**
- * Returns true if the local matrix is not an identity matrix.
+ * Returns the local matrix.
*/
- bool hasLocalMatrix() const { return !fLocalMatrix.isIdentity(); }
+ const SkMatrix& getLocalMatrix() const { return fLocalMatrix; }
+#ifdef SK_SUPPORT_LEGACY_SHADER_LOCALMATRIX
/**
- * Returns the local matrix.
+ * Returns true if the local matrix is not an identity matrix.
*/
- const SkMatrix& getLocalMatrix() const { return fLocalMatrix; }
+ bool hasLocalMatrix() const { return !fLocalMatrix.isIdentity(); }
/**
* Set the shader's local matrix.
@@ -57,6 +58,7 @@ public:
* Reset the shader's local matrix to identity.
*/
void resetLocalMatrix() { fLocalMatrix.reset(); }
+#endif
enum TileMode {
/** replicate the edge color if the shader draws outside of its