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

Unified Diff: src/core/SkXfermode.cpp

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/GrEffectStage.h ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkXfermode.cpp
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp
index b5f95dad51bc9fca81073e6e4908c0a3243f97d2..d62602e334c359f97826083f82271ba394451192 100644
--- a/src/core/SkXfermode.cpp
+++ b/src/core/SkXfermode.cpp
@@ -971,7 +971,7 @@ public:
static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) {
// The background may come from the dst or from a texture.
- int numTextures = (*drawEffect.effect())->numTextures();
+ int numTextures = drawEffect.effect()->numTextures();
SkASSERT(numTextures <= 1);
return (drawEffect.castEffect<XferEffect>().mode() << 1) | numTextures;
}
« no previous file with comments | « include/gpu/GrEffectStage.h ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698