Index: src/effects/SkMatrixConvolutionImageFilter.cpp |
diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp |
index fa7d20596c55ce2d3f55c63332bba16ec8251f0c..676cab7b3266e8913ec1224f9eb9b0af5d2baac1 100644 |
--- a/src/effects/SkMatrixConvolutionImageFilter.cpp |
+++ b/src/effects/SkMatrixConvolutionImageFilter.cpp |
@@ -405,13 +405,13 @@ public: |
const GrDrawEffect& effect); |
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*); |
virtual void setData(const GrGLUniformManager&, const GrDrawEffect&) SK_OVERRIDE; |
@@ -465,7 +465,7 @@ static void appendTextureLookup(GrGLShaderBuilder* builder, |
void GrGLMatrixConvolutionEffect::emitCode(GrGLShaderBuilder* builder, |
const GrDrawEffect&, |
- EffectKey key, |
+ const GrEffectKey& key, |
const char* outputColor, |
const char* inputColor, |
const TransformedCoordsArray& coords, |
@@ -537,13 +537,13 @@ int encodeXY(int x, int y) { |
}; |
-GrGLEffect::EffectKey GrGLMatrixConvolutionEffect::GenKey(const GrDrawEffect& drawEffect, |
- const GrGLCaps&) { |
+void GrGLMatrixConvolutionEffect::GenKey(const GrDrawEffect& drawEffect, |
+ const GrGLCaps&, GrEffectKeyBuilder* b) { |
const GrMatrixConvolutionEffect& m = drawEffect.castEffect<GrMatrixConvolutionEffect>(); |
- EffectKey key = encodeXY(m.kernelSize().width(), m.kernelSize().height()); |
+ uint32_t key = encodeXY(m.kernelSize().width(), m.kernelSize().height()); |
key |= m.tileMode() << 7; |
key |= m.convolveAlpha() ? 1 << 9 : 0; |
- return key; |
+ b->add32(key); |
} |
void GrGLMatrixConvolutionEffect::setData(const GrGLUniformManager& uman, |