R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/
227233007
git-svn-id: http://skia.googlecode.com/svn/trunk@14076
2bbb7eff-a529-9590-31e7-
b0007b416f81
}
static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) {
- return drawEffect.castEffect<XferEffect>().mode();
+ // The background may come from the dst or from a texture.
+ int numTextures = (*drawEffect.effect())->numTextures();
+ SkASSERT(numTextures <= 1);
+ return (drawEffect.castEffect<XferEffect>().mode() << 1) | numTextures;
}
private: