diff options
author | Stephen White <senorblanco@chromium.org> | 2017-06-09 10:06:26 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-09 17:24:04 +0000 |
commit | 019f6c0bcf611fec93913315708eba1633857efa (patch) | |
tree | ba95b30b5e3b7aafe6fba6a701a12d2874c71ecb /src/gpu/GrTessellator.cpp | |
parent | d0dbee6559341247fadc8c828cde82bfa737cc04 (diff) |
GrTessellator: fix logging; fix test comment.
Change-Id: Iaded9025a1518d8c69dbe366deb1035e0bd4295b
Reviewed-on: https://skia-review.googlesource.com/19289
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
Diffstat (limited to 'src/gpu/GrTessellator.cpp')
-rw-r--r-- | src/gpu/GrTessellator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrTessellator.cpp b/src/gpu/GrTessellator.cpp index 645befebf2..1ce129dcab 100644 --- a/src/gpu/GrTessellator.cpp +++ b/src/gpu/GrTessellator.cpp @@ -56,7 +56,7 @@ * neighbouring edges at the top or bottom vertex. This is handled by merging the * edges (merge_collinear_edges()). * B) Intersections may cause an edge to violate the left-to-right ordering of the - * active edge list. This is handled by detecting potential violati0ns and rewinding + * active edge list. This is handled by detecting potential violations and rewinding * the active edge list to the vertex before they occur (rewind() during merging, * rewind_if_necessary() during splitting). * @@ -1114,9 +1114,9 @@ bool check_for_intersection(Edge* edge, Edge* other, EdgeList* activeEdges, Vert v = alloc.make<Vertex>(p, alpha); #if LOGGING_ENABLED if (!prevV) { - v->fID = mesh->fHead - 1.0f; + v->fID = mesh->fHead->fID - 1.0f; } else if (!nextV) { - v->fID = mesh->fTail + 1.0f; + v->fID = mesh->fTail->fID + 1.0f; } else { v->fID = (prevV->fID + nextV->fID) * 0.5f; } |