diff options
author | 2012-08-28 18:20:18 +0000 | |
---|---|---|
committer | 2012-08-28 18:20:18 +0000 | |
commit | 34bcb9f80336fe0dc56ad5f67aeb0859bf84d92e (patch) | |
tree | b8f2dc4a54052cf700f9ef25e907df0e70f11dc4 /src/gpu/effects/GrConvolutionEffect.cpp | |
parent | 3578eb7d065ac5d9e9e7a6b8684b3ef1b3626fbd (diff) |
Some GrGLShaderBuilder cleanup
Review URL: https://codereview.appspot.com/6500043/
git-svn-id: http://skia.googlecode.com/svn/trunk@5322 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/effects/GrConvolutionEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrConvolutionEffect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/effects/GrConvolutionEffect.cpp b/src/gpu/effects/GrConvolutionEffect.cpp index 2cefbc4e26..162a0cc4c8 100644 --- a/src/gpu/effects/GrConvolutionEffect.cpp +++ b/src/gpu/effects/GrConvolutionEffect.cpp @@ -75,7 +75,7 @@ void GrGLConvolutionEffect::emitFS(GrGLShaderBuilder* builder, const char* imgInc = builder->getUniformCStr(fImageIncrementUni); code->appendf("\t\tvec2 coord = %s - %d.0 * %s;\n", - builder->fSampleCoords.c_str(), fRadius, imgInc); + builder->defaultTexCoordsName(), fRadius, imgInc); // Manually unroll loop because some drivers don't; yields 20-30% speedup. for (int i = 0; i < width; i++) { |