diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-16 13:36:18 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-16 13:36:18 +0000 |
commit | 032b221dadb6eb8283ac2d1bc8913ee7bb5cfe7a (patch) | |
tree | 7b97452a7937949417cc40a4817cf4c4ede8e4ab /src/gpu/gl/GrGLShaderVar.h | |
parent | 96cbd2c4d2ea7e138b65923a46fb77bc096a6782 (diff) |
Remove uniform var pointers from custom effects
Review URL: http://codereview.appspot.com/6374067/
git-svn-id: http://skia.googlecode.com/svn/trunk@4616 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLShaderVar.h')
-rw-r--r-- | src/gpu/gl/GrGLShaderVar.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLShaderVar.h b/src/gpu/gl/GrGLShaderVar.h index 2eccd3b1e8..0231d214d3 100644 --- a/src/gpu/gl/GrGLShaderVar.h +++ b/src/gpu/gl/GrGLShaderVar.h @@ -171,12 +171,18 @@ public: */ void setName(const SkString& n) { fName = n; } void setName(const char* n) { fName = n; } + /** * Get the var name. */ const SkString& getName() const { return fName; } /** + * Shortcut for this->getName().c_str(); + */ + const char* c_str() const { return this->getName().c_str(); } + + /** * Get the type of the var */ GrSLType getType() const { return fType; } |