aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrEffect.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-29 19:51:22 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-29 19:51:22 +0000
commit2eaaefd7e6a58339b3f93333f1e9cc92252cc303 (patch)
treef65a31a9b3bc70909ceb311ebad684c2bf445868 /src/gpu/GrEffect.cpp
parent484ee2a5fe47c204d9dda6acba54f9789d1cf69f (diff)
Pass GrCustomStage to key-generation functions and emitCode().
R=robertphillips@google.com Review URL: https://codereview.appspot.com/6819046 git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6182 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrEffect.cpp')
-rw-r--r--src/gpu/GrEffect.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gpu/GrEffect.cpp b/src/gpu/GrEffect.cpp
index 6423aef5dc..09032bf0f9 100644
--- a/src/gpu/GrEffect.cpp
+++ b/src/gpu/GrEffect.cpp
@@ -5,8 +5,9 @@
* found in the LICENSE file.
*/
-#include "GrContext.h"
#include "GrEffect.h"
+#include "GrBackendEffectFactory.h"
+#include "GrContext.h"
#include "GrMemoryPool.h"
#include "SkTLS.h"
@@ -49,6 +50,11 @@ bool GrEffect::isOpaque(bool inputTextureIsOpaque) const {
return false;
}
+const char* GrEffect::name() const {
+ return this->getFactory().name();
+}
+
+
bool GrEffect::isEqual(const GrEffect& s) const {
if (this->numTextures() != s.numTextures()) {
return false;