aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-02-05 16:20:47 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-05 21:44:41 +0000
commit7d982c6c543285b081cc722ff1ba6e2bb14f901a (patch)
tree477f9bc66356d1b9d992fd9c1c105cc2afaa10eb /src
parent547c8590a553efef7bcfb4c04e52072eb1271bea (diff)
Make edge equations be flat interpolated in GrTextureOp
This only applies when the interpolants-are-inaccurate workaround is in play Change-Id: I1cd8cbbfdc6f7f8f1764eeb588b2962d2d115340 Reviewed-on: https://skia-review.googlesource.com/104020 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/gpu/ops/GrTextureOp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/ops/GrTextureOp.cpp b/src/gpu/ops/GrTextureOp.cpp
index 565a65883d..2aeb49beb6 100644
--- a/src/gpu/ops/GrTextureOp.cpp
+++ b/src/gpu/ops/GrTextureOp.cpp
@@ -189,7 +189,8 @@ public:
for (int i = 0; i < 4; ++i) {
SkString name;
name.printf("aaEdge%d", i);
- args.fVaryingHandler->addVarying(name.c_str(), &aaEdgeVarying[i]);
+ args.fVaryingHandler->addVarying(name.c_str(), &aaEdgeVarying[i],
+ Interpolation::kCanBeFlat);
args.fVertBuilder->codeAppendf(
"%s = aaEdge%d;", aaEdgeVarying[i].vsOut(), i);
}