aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTessellator.cpp
diff options
context:
space:
mode:
authorGravatar Stephen White <senorblanco@chromium.org>2018-01-04 16:45:51 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-05 18:08:30 +0000
commitf470b7ecf0ad3910e96414a3d93db61c422ba917 (patch)
tree3328aa0c508ad5868252a287c0d158afbf9da7fa /src/gpu/GrTessellator.cpp
parent8fb3725acfc618c85b02ddf8114c40048e1fcba7 (diff)
GrTessellator: fix for assert on bevelling.
With some large values, intersection for bevelling will fail. These should just skip the point, not assert. BUG=798912 Change-Id: Ie5c8cc3c9387055e1e31480321a231f0e6ff153b Reviewed-on: https://skia-review.googlesource.com/91141 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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrTessellator.cpp b/src/gpu/GrTessellator.cpp
index 3e90046b8f..3eb92a6479 100644
--- a/src/gpu/GrTessellator.cpp
+++ b/src/gpu/GrTessellator.cpp
@@ -1990,7 +1990,7 @@ void stroke_boundary(EdgeList* boundary, VertexList* innerMesh, VertexList* oute
if (!innerTangent.intersect(prevInner, &innerPoint1) ||
!innerTangent.intersect(inner, &innerPoint2) ||
!outerTangent.intersect(bisector, &outerPoint)) {
- SkASSERT(false);
+ continue;
}
Line prevTangent(prevV->fPoint,
prevV->fPoint + SkVector::Make(prevOuter.fA, prevOuter.fB));
@@ -2008,7 +2008,7 @@ void stroke_boundary(EdgeList* boundary, VertexList* innerMesh, VertexList* oute
// Miter outer points
if (!outerTangent.intersect(prevOuter, &outerPoint1) ||
!outerTangent.intersect(outer, &outerPoint2)) {
- SkASSERT(false);
+ continue;
}
Line prevTangent(prevV->fPoint,
prevV->fPoint + SkVector::Make(prevInner.fA, prevInner.fB));