diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-23 13:02:51 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-23 13:03:17 +0000 |
commit | 9d9022477fb3bbbdba8f79b09d734b4c7344bebe (patch) | |
tree | 486147950bf45e29f39d8fb94bf38c415305004c /src/gpu/GrTessellator.cpp | |
parent | dc03ddeb7e716ca871f9ca6a3b3ffb0ce6caa548 (diff) |
Revert "GrTessellator: when sanitizing contours, remove non-finite points."
This reverts commit 620cc248517a509040d3f94f29710edf3a151c5b.
Reason for revert: Breaking the Vulkan bots
Original change's description:
> GrTessellator: when sanitizing contours, remove non-finite points.
>
> NaNs can't be correctly sorted.
>
> Bug: 757650
> Change-Id: Id1ca2fe1d1de7884da2a64ceef9491b1da7e8e77
> Reviewed-on: https://skia-review.googlesource.com/37220
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Stephen White <senorblanco@chromium.org>
TBR=bsalomon@google.com,senorblanco@chromium.org
Change-Id: I64d5c35801f844b31745a9c7ff60812d96af5e55
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 757650
Reviewed-on: https://skia-review.googlesource.com/37540
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTessellator.cpp')
-rw-r--r-- | src/gpu/GrTessellator.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gpu/GrTessellator.cpp b/src/gpu/GrTessellator.cpp index 4d638ba60c..2cb9adcbf8 100644 --- a/src/gpu/GrTessellator.cpp +++ b/src/gpu/GrTessellator.cpp @@ -1168,9 +1168,6 @@ void sanitize_contours(VertexList* contours, int contourCnt, bool approximate) { if (coincident(prev->fPoint, v->fPoint)) { LOG("vertex %g,%g coincident; removing\n", v->fPoint.fX, v->fPoint.fY); contour->remove(v); - } else if (!v->fPoint.isFinite()) { - LOG("vertex %g,%g non-finite; removing\n", v->fPoint.fX, v->fPoint.fY); - contour->remove(v); } prev = v; v = next; |