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

Unified Diff: src/pathops/SkOpContour.cpp

Issue 1405383004: fix path op conic bugs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix w cast Created 5 years, 2 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 | « src/pathops/SkOpContour.h ('k') | src/pathops/SkOpSegment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpContour.cpp
diff --git a/src/pathops/SkOpContour.cpp b/src/pathops/SkOpContour.cpp
index 2e4b2ca56abfaa9540ad7c6f00e2c6b73000fbf5..df65437c97d1799fb212961758e149ae763faf45 100644
--- a/src/pathops/SkOpContour.cpp
+++ b/src/pathops/SkOpContour.cpp
@@ -42,7 +42,7 @@ void SkOpContour::toPath(SkPathWriter* path) const {
path->deferredMove(pt);
const SkOpSegment* segment = &fHead;
do {
- segment->addCurveTo(segment->head(), segment->tail(), path, true);
+ SkAssertResult(segment->addCurveTo(segment->head(), segment->tail(), path));
} while ((segment = segment->next()));
path->close();
}
@@ -52,7 +52,7 @@ void SkOpContour::toReversePath(SkPathWriter* path) const {
path->deferredMove(pt);
const SkOpSegment* segment = fTail;
do {
- segment->addCurveTo(segment->tail(), segment->head(), path, true);
+ SkAssertResult(segment->addCurveTo(segment->tail(), segment->head(), path));
} while ((segment = segment->prev()));
path->close();
}
« no previous file with comments | « src/pathops/SkOpContour.h ('k') | src/pathops/SkOpSegment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698