aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkAlphaThresholdFilter.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-12-09 10:18:12 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-09 10:18:12 -0800
commit422f56f6e51c2f6a6ab425573b4d790f0157f883 (patch)
treeb82073834abcc2c760e894ab6d2c2af1fe474d41 /src/effects/SkAlphaThresholdFilter.cpp
parentc0bd6484f621e4a1033be318b1947a5d32157c13 (diff)
Make addUniform take a precision
Diffstat (limited to 'src/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r--src/effects/SkAlphaThresholdFilter.cpp6
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);