From 1a1aa9303484106a955e5549bf8ae24950f54e7a Mon Sep 17 00:00:00 2001 From: bsalomon Date: Mon, 12 Sep 2016 09:30:36 -0700 Subject: Remove unneeded GrGLSLTransformedCoordsArray type Rename GrGLSLFragmentBuilder::ensureFSCoords2D to ensureCoords2D and make it take an arbitrary GrShaderVar. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2324663004 Review-Url: https://codereview.chromium.org/2324663004 --- src/effects/gradients/SkSweepGradient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/effects/gradients/SkSweepGradient.cpp') diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp index 505cfd2c95..bdb0e1ce25 100644 --- a/src/effects/gradients/SkSweepGradient.cpp +++ b/src/effects/gradients/SkSweepGradient.cpp @@ -212,7 +212,7 @@ sk_sp GrSweepGradient::TestCreate(GrProcessorTestData* d) { void GrSweepGradient::GLSLSweepProcessor::emitCode(EmitArgs& args) { const GrSweepGradient& ge = args.fFp.cast(); this->emitUniforms(args.fUniformHandler, ge); - SkString coords2D = args.fFragBuilder->ensureFSCoords2D(args.fCoords, 0); + SkString coords2D = args.fFragBuilder->ensureCoords2D(args.fTransformedCoords[0]); SkString t; // 0.1591549430918 is 1/(2*pi), used since atan returns values [-pi, pi] // On Intel GPU there is an issue where it reads the second arguement to atan "- %s.x" as an int -- cgit v1.2.3