Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: include/gpu/GrEffectStage.h

Issue 372773002: Remove use of GrEffectRef from draw state and below. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrDrawEffect.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrEffectStage.h
diff --git a/include/gpu/GrEffectStage.h b/include/gpu/GrEffectStage.h
index 478ea5e4c45c2c941a7d4b517df0c26933d00ced..84ccbbf091dd6ccfa7a82d4412360336f891629d 100644
--- a/include/gpu/GrEffectStage.h
+++ b/include/gpu/GrEffectStage.h
@@ -45,7 +45,7 @@ public:
SkASSERT(NULL != fEffectRef.get());
SkASSERT(NULL != other.fEffectRef.get());
- if (!(*this->getEffect())->isEqual(*other.getEffect())) {
+ if (!this->getEffect()->isEqual(*other.getEffect())) {
return false;
}
@@ -126,7 +126,7 @@ public:
}
}
- const GrEffectRef* getEffect() const { return fEffectRef.get(); }
+ const GrEffect* getEffect() const { return fEffectRef.get()->get(); }
const int* getVertexAttribIndices() const { return fVertexAttribIndices; }
int getVertexAttribIndexCount() const { return fEffectRef->get()->numVertexAttribs(); }
« no previous file with comments | « include/gpu/GrDrawEffect.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698