From: reed@android.com Date: Thu, 19 Nov 2009 03:02:38 +0000 (+0000) Subject: return early if we hit overflow when chopping on the left (i.e. the entire X-Git-Tag: submit/tizen/20180928.044319~19323 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=181172d5642fce4a4c1d339a6e3c5e4a8079b11a;p=platform%2Fupstream%2FlibSkiaSharp.git return early if we hit overflow when chopping on the left (i.e. the entire segment is effectively to the left) git-svn-id: http://skia.googlecode.com/svn/trunk@434 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/core/SkEdgeClipper.cpp b/src/core/SkEdgeClipper.cpp index 7ad845d020..7c82d2250f 100644 --- a/src/core/SkEdgeClipper.cpp +++ b/src/core/SkEdgeClipper.cpp @@ -171,6 +171,7 @@ void SkEdgeClipper::clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) { // if chopMonoQuadAtY failed, then we may have hit inexact numerics // so we just clamp against the left this->appendVLine(clip.fLeft, pts[0].fY, pts[2].fY, reverse); + return; } } @@ -354,6 +355,7 @@ void SkEdgeClipper::clipMonoCubic(const SkPoint src[4], const SkRect& clip) { // if chopMonocubicAtY failed, then we may have hit inexact numerics // so we just clamp against the left this->appendVLine(clip.fLeft, pts[0].fY, pts[3].fY, reverse); + return; } }