From 7d982c6c543285b081cc722ff1ba6e2bb14f901a Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Mon, 5 Feb 2018 16:20:47 -0500 Subject: [PATCH] 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 Commit-Queue: Brian Salomon --- src/gpu/ops/GrTextureOp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }