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

Unified Diff: src/pathops/SkOpSpan.cpp

Issue 2273293004: path ops stream-lining (Closed)
Patch Set: remove commented out code Created 4 years, 4 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/SkOpSpan.h ('k') | src/pathops/SkPathOpsDebug.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpSpan.cpp
diff --git a/src/pathops/SkOpSpan.cpp b/src/pathops/SkOpSpan.cpp
index 640ba8feb74a0c41dfc5b957edb14295b5b2de30..98165fcfc53c08458d942dfddff78c9a58e468d2 100755
--- a/src/pathops/SkOpSpan.cpp
+++ b/src/pathops/SkOpSpan.cpp
@@ -180,7 +180,9 @@ void SkOpPtT::setDeleted() {
// please keep this in sync with debugAddOppAndMerge
// If the added points envelop adjacent spans, merge them in.
void SkOpSpanBase::addOppAndMerge(SkOpSpanBase* opp) {
- if (this->ptT()->addOpp(opp->ptT())) {
+ SkOpPtT* oppPrev = this->ptT()->oppPrev(opp->ptT());
+ if (oppPrev) {
+ this->ptT()->addOpp(opp->ptT(), oppPrev);
this->checkForCollapsedCoincidence();
}
// compute bounds of points in span
« no previous file with comments | « src/pathops/SkOpSpan.h ('k') | src/pathops/SkPathOpsDebug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698