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

Unified Diff: include/gpu/GrDrawEffect.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 | « no previous file | include/gpu/GrEffectStage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrDrawEffect.h
diff --git a/include/gpu/GrDrawEffect.h b/include/gpu/GrDrawEffect.h
index 9a7a75d55f6c9ccdf9c2cff638c84c4d685ace36..6aff82ef507de001395aebe333578628a9ea288e 100644
--- a/include/gpu/GrDrawEffect.h
+++ b/include/gpu/GrDrawEffect.h
@@ -24,10 +24,10 @@ public:
SkASSERT(NULL != fEffectStage);
SkASSERT(NULL != fEffectStage->getEffect());
}
- const GrEffectRef* effect() const { return fEffectStage->getEffect(); }
+ const GrEffect* effect() const { return fEffectStage->getEffect(); }
template <typename T>
- const T& castEffect() const { return *static_cast<const T*>(this->effect()->get()); }
+ const T& castEffect() const { return *static_cast<const T*>(this->effect()); }
const SkMatrix& getCoordChangeMatrix() const {
if (fExplicitLocalCoords) {
« no previous file with comments | « no previous file | include/gpu/GrEffectStage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698