diff options
author | bsalomon <bsalomon@google.com> | 2014-12-09 10:18:12 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-09 10:18:12 -0800 |
commit | 422f56f6e51c2f6a6ab425573b4d790f0157f883 (patch) | |
tree | b82073834abcc2c760e894ab6d2c2af1fe474d41 /src/effects/SkAlphaThresholdFilter.cpp | |
parent | c0bd6484f621e4a1033be318b1947a5d32157c13 (diff) |
Make addUniform take a precision
Review URL: https://codereview.chromium.org/788733003
Diffstat (limited to 'src/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r-- | src/effects/SkAlphaThresholdFilter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp index 6f9fefce1b..8908a6a9f5 100644 --- a/src/effects/SkAlphaThresholdFilter.cpp +++ b/src/effects/SkAlphaThresholdFilter.cpp @@ -143,10 +143,12 @@ void GrGLAlphaThresholdEffect::emitCode(GrGLFPBuilder* builder, const TextureSamplerArray& samplers) { fInnerThresholdVar = builder->addUniform( GrGLProgramBuilder::kFragment_Visibility, - kFloat_GrSLType, "inner_threshold"); + kFloat_GrSLType, kDefault_GrSLPrecision, + "inner_threshold"); fOuterThresholdVar = builder->addUniform( GrGLProgramBuilder::kFragment_Visibility, - kFloat_GrSLType, "outer_threshold"); + kFloat_GrSLType, kDefault_GrSLPrecision, + "outer_threshold"); GrGLFPFragmentBuilder* fsBuilder = builder->getFragmentShaderBuilder(); SkString coords2D = fsBuilder->ensureFSCoords2D(coords, 0); |