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

Unified Diff: src/pathops/SkOpContour.cpp

Issue 1037953004: add conics to path ops (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: turn off pathops specific debuggging Created 5 years, 8 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/SkOpCubicHull.cpp » ('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 d17b18905beeba9a9c3cb86bc72a1d3901ed7fe6..ab1a37b09a95f68716a76eec5a81d9d0391c9827 100644
--- a/src/pathops/SkOpContour.cpp
+++ b/src/pathops/SkOpContour.cpp
@@ -22,6 +22,9 @@ void SkOpContour::addCurve(SkPath::Verb verb, const SkPoint pts[4], SkChunkAlloc
memcpy(ptStorage, pts, sizeof(SkPoint) * 3);
appendSegment(allocator).addQuad(ptStorage, this);
} break;
+ case SkPath::kConic_Verb: {
+ SkASSERT(0); // the original curve is a cubic, which will never reduce to a conic
+ } break;
case SkPath::kCubic_Verb: {
SkPoint* ptStorage = SkOpTAllocator<SkPoint>::AllocateArray(allocator, 4);
memcpy(ptStorage, pts, sizeof(SkPoint) * 4);
« no previous file with comments | « src/pathops/SkOpContour.h ('k') | src/pathops/SkOpCubicHull.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698