aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-01-28 17:33:45 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-28 17:33:45 -0800
commite79d7b7929d777006bd973b597f0bbd321dcc4d0 (patch)
tree6658c906c2340b8a9d92d1d88ca42c7639a84ca0 /src
parentf4ba3219c2d46f41f26876a14c484c4fc581286a (diff)
Revert of Remove 'f' from 0.05f in shader code (patchset #1 id:1 of https://codereview.chromium.org/888483002/)
Reason for revert: Chrome pixel test Original issue's description: > Remove 'f' from 0.05f in shader code > > TBR=bsalomon@google.com > NOTREECHECKS=true > NOTRY=true > > Committed: https://skia.googlesource.com/skia/+/1726997861fac8daa8213d1a51d5c8fbe44428d1 TBR=bsalomon@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/890433002
Diffstat (limited to 'src')
-rw-r--r--src/gpu/effects/GrConvexPolyEffect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/effects/GrConvexPolyEffect.cpp b/src/gpu/effects/GrConvexPolyEffect.cpp
index 615c341ef2..9d9792e2b9 100644
--- a/src/gpu/effects/GrConvexPolyEffect.cpp
+++ b/src/gpu/effects/GrConvexPolyEffect.cpp
@@ -230,7 +230,7 @@ void GrGLConvexPolyEffect::emitCode(GrGLFPBuilder* builder,
// Add a device space "nudge" of 0.05f, 0.05f to match raster's rounding behavior for
// BW clipping/drawing. Since we are "nudging" fragment positions we have to go in
// the opposite direction.
- fsBuilder->codeAppendf("\t\tedge = dot(%s[%d], vec3(%s.x - 0.05, %s.y - 0.05, 1));\n",
+ fsBuilder->codeAppendf("\t\tedge = dot(%s[%d], vec3(%s.x - 0.05f, %s.y - 0.05f, 1));\n",
edgeArrayName, i, fragmentPos, fragmentPos);
if (GrProcessorEdgeTypeIsAA(cpe.getEdgeType())) {
fsBuilder->codeAppend("\t\tedge = clamp(edge, 0.0, 1.0);\n");