Index: src/gpu/effects/GrConfigConversionEffect.cpp |
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp |
index c421867dd76e71a1bc0044f30921ccee34af2964..07529d04ff3839a2378a4fa14141acb74919e3ab 100644 |
--- a/src/gpu/effects/GrConfigConversionEffect.cpp |
+++ b/src/gpu/effects/GrConfigConversionEffect.cpp |
@@ -25,7 +25,7 @@ public: |
virtual void emitCode(GrGLShaderBuilder* builder, |
const GrDrawEffect&, |
- EffectKey key, |
+ const GrEffectKey& key, |
const char* outputColor, |
const char* inputColor, |
const TransformedCoordsArray& coords, |
@@ -71,9 +71,11 @@ public: |
builder->fsCodeAppend(modulate.c_str()); |
} |
- static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { |
+ static inline void GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&, |
+ GrEffectKeyBuilder* b) { |
const GrConfigConversionEffect& conv = drawEffect.castEffect<GrConfigConversionEffect>(); |
- return static_cast<EffectKey>(conv.swapsRedAndBlue()) | (conv.pmConversion() << 1); |
+ uint32_t key = (conv.swapsRedAndBlue() ? 0 : 1) | (conv.pmConversion() << 1); |
+ b->add32(key); |
} |
private: |