Index: src/effects/gradients/SkSweepGradient.cpp |
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp |
index f975a1887ead036816bd2f190fd36cb8f76a6c5e..e00bb9659b1fdafbd0d71647e737103a9789769d 100644 |
--- a/src/effects/gradients/SkSweepGradient.cpp |
+++ b/src/effects/gradients/SkSweepGradient.cpp |
@@ -472,12 +472,13 @@ void GrGLSweepGradient::emitCode(GrGLShaderBuilder* builder, |
const char* outputColor, |
const char* inputColor, |
const TextureSamplerArray& samplers) { |
- this->emitYCoordUniform(builder); |
+ this->emitUniforms(builder, key); |
const char* coords; |
this->setupMatrix(builder, key, &coords); |
SkString t; |
t.printf("atan(- %s.y, - %s.x) * 0.1591549430918 + 0.5", coords, coords); |
- this->emitColorLookup(builder, t.c_str(), outputColor, inputColor, samplers[0]); |
+ this->emitColor(builder, t.c_str(), key, |
+ outputColor, inputColor, samplers); |
} |
///////////////////////////////////////////////////////////////////// |