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>
This commit is contained in:
parent
547c8590a5
commit
7d982c6c54
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user