Index: src/effects/gradients/SkRadialGradient.cpp |
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp |
index 9fcce68fa3a1b9e2ccfb91786388e61e9face951..9f3230358e1dce369a1bb2145d7363dd75dda458 100644 |
--- a/src/effects/gradients/SkRadialGradient.cpp |
+++ b/src/effects/gradients/SkRadialGradient.cpp |
@@ -484,7 +484,7 @@ public: |
const TextureSamplerArray&) SK_OVERRIDE; |
static EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { |
- return GenMatrixKey(drawEffect); |
+ return GenBaseGradientKey(drawEffect); |
} |
private: |
@@ -558,13 +558,13 @@ void GrGLRadialGradient::emitCode(GrGLShaderBuilder* builder, |
const char* outputColor, |
const char* inputColor, |
const TextureSamplerArray& samplers) { |
- this->emitYCoordUniform(builder); |
+ this->emitUniforms(builder, key); |
SkString coords; |
this->setupMatrix(builder, key, &coords); |
SkString t("length("); |
t.append(coords); |
t.append(")"); |
- this->emitColorLookup(builder, t.c_str(), outputColor, inputColor, samplers[0]); |
+ this->emitColor(builder, t.c_str(), key, outputColor, inputColor, samplers); |
} |
///////////////////////////////////////////////////////////////////// |