Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index 872c6e81d100263c74a705a71b7aaa944feb229f..98b621ec8eb5b8b517ed4542f86239f0eebed54c 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -437,7 +437,7 @@ sk_sp<GrFragmentProcessor> GrLinearGradient::TestCreate(GrProcessorTestData* d) |
void GrLinearGradient::GLSLLinearProcessor::emitCode(EmitArgs& args) { |
const GrLinearGradient& ge = args.fFp.cast<GrLinearGradient>(); |
this->emitUniforms(args.fUniformHandler, ge); |
- SkString t = args.fFragBuilder->ensureFSCoords2D(args.fCoords, 0); |
+ SkString t = args.fFragBuilder->ensureCoords2D(args.fTransformedCoords[0]); |
t.append(".x"); |
this->emitColor(args.fFragBuilder, |
args.fUniformHandler, |