handle empty contours in a couple more places
R=kjlubick@google.com BUG=skia:6061 Change-Id: I5b465f1495f80a5ac44253cadf4afd7f509fa75b Reviewed-on: https://skia-review.googlesource.com/6268 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Cary Clark <caryclark@google.com>
This commit is contained in:
parent
6750e91544
commit
9c16d1e766
@ -292,6 +292,9 @@ public:
|
||||
void resetReverse() {
|
||||
SkOpContour* next = this;
|
||||
do {
|
||||
if (!next->count()) {
|
||||
continue;
|
||||
}
|
||||
next->fCcw = -1;
|
||||
next->fReverse = false;
|
||||
} while ((next = next->next()));
|
||||
@ -405,6 +408,9 @@ public:
|
||||
void joinAllSegments() {
|
||||
SkOpContour* next = this;
|
||||
do {
|
||||
if (!next->count()) {
|
||||
continue;
|
||||
}
|
||||
next->joinSegments();
|
||||
} while ((next = next->next()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user