Index: src/effects/SkMorphologyImageFilter.cpp |
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp |
index 10c6fe5ad0699258afecca08b2c01eaa9e0dc247..7be4435b687a0545cac26168d8ac40be77218391 100644 |
--- a/src/effects/SkMorphologyImageFilter.cpp |
+++ b/src/effects/SkMorphologyImageFilter.cpp |
@@ -316,13 +316,13 @@ public: |
virtual void emitCode(GrGLShaderBuilder*, |
const GrDrawEffect&, |
- EffectKey, |
+ const GrEffectKey&, |
const char* outputColor, |
const char* inputColor, |
const TransformedCoordsArray&, |
const TextureSamplerArray&) SK_OVERRIDE; |
- static inline EffectKey GenKey(const GrDrawEffect&, const GrGLCaps&); |
+ static inline void GenKey(const GrDrawEffect&, const GrGLCaps&, GrEffectKeyBuilder* b); |
virtual void setData(const GrGLUniformManager&, const GrDrawEffect&) SK_OVERRIDE; |
@@ -346,7 +346,7 @@ GrGLMorphologyEffect::GrGLMorphologyEffect(const GrBackendEffectFactory& factory |
void GrGLMorphologyEffect::emitCode(GrGLShaderBuilder* builder, |
const GrDrawEffect&, |
- EffectKey key, |
+ const GrEffectKey& key, |
const char* outputColor, |
const char* inputColor, |
const TransformedCoordsArray& coords, |
@@ -384,12 +384,12 @@ void GrGLMorphologyEffect::emitCode(GrGLShaderBuilder* builder, |
builder->fsCodeAppend(modulate.c_str()); |
} |
-GrGLEffect::EffectKey GrGLMorphologyEffect::GenKey(const GrDrawEffect& drawEffect, |
- const GrGLCaps&) { |
+void GrGLMorphologyEffect::GenKey(const GrDrawEffect& drawEffect, |
+ const GrGLCaps&, GrEffectKeyBuilder* b) { |
const GrMorphologyEffect& m = drawEffect.castEffect<GrMorphologyEffect>(); |
- EffectKey key = static_cast<EffectKey>(m.radius()); |
+ uint32_t key = static_cast<uint32_t>(m.radius()); |
key |= (m.type() << 8); |
- return key; |
+ b->add32(key); |
} |
void GrGLMorphologyEffect::setData(const GrGLUniformManager& uman, |