Index: src/effects/gradients/SkRadialGradient.cpp |
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp |
index 78ecffae1a003b66196918dfcd3a4cc0be7f65c9..1fbd1716abad9917f07aaffa2946159b85c65c54 100644 |
--- a/src/effects/gradients/SkRadialGradient.cpp |
+++ b/src/effects/gradients/SkRadialGradient.cpp |
@@ -333,7 +333,7 @@ void GrRadialGradient::GLSLRadialProcessor::emitCode(EmitArgs& args) { |
const GrRadialGradient& ge = args.fFp.cast<GrRadialGradient>(); |
this->emitUniforms(args.fUniformHandler, ge); |
SkString t("length("); |
- t.append(args.fFragBuilder->ensureFSCoords2D(args.fCoords, 0)); |
+ t.append(args.fFragBuilder->ensureCoords2D(args.fTransformedCoords[0])); |
t.append(")"); |
this->emitColor(args.fFragBuilder, |
args.fUniformHandler, |