Index: src/effects/gradients/SkRadialGradient.cpp |
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp |
index c9ff20fa9246c4168c0048913d13d5e22bea0d27..efd41c4a8a8217d260be6d5aa834f13d29b72dc9 100644 |
--- a/src/effects/gradients/SkRadialGradient.cpp |
+++ b/src/effects/gradients/SkRadialGradient.cpp |
@@ -501,9 +501,13 @@ void GrGLRadialGradient::emitCode(EmitArgs& args) { |
const GrRadialGradient& ge = args.fFp.cast<GrRadialGradient>(); |
this->emitUniforms(args.fBuilder, ge); |
SkString t("length("); |
- t.append(args.fBuilder->getFragmentShaderBuilder()->ensureFSCoords2D(args.fCoords, 0)); |
+ t.append(args.fFragBuilder->ensureFSCoords2D(args.fCoords, 0)); |
t.append(")"); |
- this->emitColor(args.fBuilder, ge, t.c_str(), args.fOutputColor, args.fInputColor, |
+ this->emitColor(args.fBuilder, |
+ args.fFragBuilder, |
+ ge, t.c_str(), |
+ args.fOutputColor, |
+ args.fInputColor, |
args.fSamplers); |
} |