Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: src/effects/SkAlphaThresholdFilter.cpp

Issue 788733003: Make addUniform take a precision (Closed) Base URL: https://skia.googlesource.com/skia.git@move_prec
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrTypesPriv.h ('k') | src/effects/SkArithmeticMode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « include/gpu/GrTypesPriv.h ('k') | src/effects/SkArithmeticMode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698