Index: src/effects/SkAlphaThresholdFilter.cpp |
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp |
index 6f9fefce1ba112af36e5c920aa3f343f2442f094..8908a6a9f5fd4328850733376c218a479fcc1d66 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); |