Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: src/core/SkStroke.cpp

Issue 948043002: break out of cubic stroker loop on degenerate case (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkStroke.cpp
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp
index 1a44a3a19f6654aaf8cf093e492df4db8ad5d6f7..ba7b7d3c8e9d2cb00e76814948b75f21559fe1c7 100644
--- a/src/core/SkStroke.cpp
+++ b/src/core/SkStroke.cpp
@@ -1412,11 +1412,11 @@ void SkPathStroker::cubicTo(const SkPoint& pt1, const SkPoint& pt2,
SkQuadConstruct quadPts;
this->init(kOuter_StrokeType, &quadPts, lastT, nextT);
if (!this->cubicStroke(cubic, &quadPts)) {
reed1 2015/02/23 15:44:12 Can we add a brief comment as to why this might oc
caryclark 2015/02/23 17:10:47 Done.
- return;
+ break;
}
this->init(kInner_StrokeType, &quadPts, lastT, nextT);
if (!this->cubicStroke(cubic, &quadPts)) {
- return;
+ break;
}
lastT = nextT;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698