diff options
author | bsalomon <bsalomon@google.com> | 2016-09-12 09:30:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-12 09:30:36 -0700 |
commit | 1a1aa9303484106a955e5549bf8ae24950f54e7a (patch) | |
tree | 512123db32ff1045b74f8ac2ef95d60bc4573a62 /gm | |
parent | a316395e66095aa1bf495525e34c991688467a45 (diff) |
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
Diffstat (limited to 'gm')
-rw-r--r-- | gm/dcshader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/dcshader.cpp b/gm/dcshader.cpp index 25d114fd14..e53f5ae8a3 100644 --- a/gm/dcshader.cpp +++ b/gm/dcshader.cpp @@ -65,8 +65,8 @@ public: class DCGLFP : public GrGLSLFragmentProcessor { void emitCode(EmitArgs& args) override { GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; - fragBuilder->codeAppendf("vec2 c = %s;", - fragBuilder->ensureFSCoords2D(args.fCoords, 0).c_str()); + SkString coords2d = fragBuilder->ensureCoords2D(args.fTransformedCoords[0]); + fragBuilder->codeAppendf("vec2 c = %s;", coords2d.c_str()); fragBuilder->codeAppend("vec2 r = mod(c, vec2(20.0));"); fragBuilder->codeAppend("vec4 color = vec4(0.5*sin(c.x / 15.0) + 0.5," "0.5*cos((c.x + c.y) / 15.0) + 0.5," |