aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrBicubicEffect.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-11-19 07:23:45 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-19 07:23:45 -0800
commita2e3e0f7f8ceed2ab152428d7ee2812ad8c842c3 (patch)
tree7de5c916ac1dc4e50f9f679f530a9f7dcde1b1e3 /src/gpu/effects/GrBicubicEffect.cpp
parentc0604609cef6a14ca25e794b5db4500f96e2e3b4 (diff)
Move glsl onto EmitArgs struct for emitCode
Diffstat (limited to 'src/gpu/effects/GrBicubicEffect.cpp')
-rw-r--r--src/gpu/effects/GrBicubicEffect.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpu/effects/GrBicubicEffect.cpp b/src/gpu/effects/GrBicubicEffect.cpp
index d9e6182e7b..8efcffdf03 100644
--- a/src/gpu/effects/GrBicubicEffect.cpp
+++ b/src/gpu/effects/GrBicubicEffect.cpp
@@ -97,7 +97,12 @@ void GrGLBicubicEffect::emitCode(EmitArgs& args) {
coord.printf("coord + %s * vec2(%d, %d)", imgInc, x - 1, y - 1);
SkString sampleVar;
sampleVar.printf("rowColors[%d]", x);
- fDomain.sampleTexture(fragBuilder, domain, sampleVar.c_str(), coord, args.fSamplers[0]);
+ fDomain.sampleTexture(fragBuilder,
+ args.fGLSLCaps,
+ domain,
+ sampleVar.c_str(),
+ coord,
+ args.fSamplers[0]);
}
fragBuilder->codeAppendf(
"\tvec4 s%d = %s(%s, f.x, rowColors[0], rowColors[1], rowColors[2], rowColors[3]);\n",