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

Side by Side Diff: src/pathops/SkPathOpsDebug.cpp

Issue 400033002: update pathops core and tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix uninitialized variable Created 6 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/pathops/SkPathOpsDebug.h ('k') | tests/PathOpsDebug.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkPathOpsDebug.h" 8 #include "SkPathOpsDebug.h"
9 #include "SkPath.h" 9 #include "SkPath.h"
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 #include "SkOpAngle.h" 102 #include "SkOpAngle.h"
103 #include "SkOpSegment.h" 103 #include "SkOpSegment.h"
104 104
105 #if DEBUG_SORT 105 #if DEBUG_SORT
106 void SkOpAngle::debugLoop() const { 106 void SkOpAngle::debugLoop() const {
107 const SkOpAngle* first = this; 107 const SkOpAngle* first = this;
108 const SkOpAngle* next = this; 108 const SkOpAngle* next = this;
109 do { 109 do {
110 next->dumpOne(true); 110 next->dumpOne(true);
111 SkDebugf("\n");
111 next = next->fNext; 112 next = next->fNext;
112 } while (next && next != first); 113 } while (next && next != first);
113 } 114 }
114 #endif 115 #endif
115 116
116 #if DEBUG_ANGLE 117 #if DEBUG_ANGLE
117 void SkOpAngle::debugSameAs(const SkOpAngle* compare) const { 118 void SkOpAngle::debugSameAs(const SkOpAngle* compare) const {
118 SK_ALWAYSBREAK(fSegment == compare->fSegment); 119 SK_ALWAYSBREAK(fSegment == compare->fSegment);
119 const SkOpSpan& startSpan = fSegment->span(fStart); 120 const SkOpSpan& startSpan = fSegment->span(fStart);
120 const SkOpSpan& oStartSpan = fSegment->span(compare->fStart); 121 const SkOpSpan& oStartSpan = fSegment->span(compare->fStart);
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 } 557 }
557 last = &span; 558 last = &span;
558 hasLoop |= last->fLoop; 559 hasLoop |= last->fLoop;
559 } 560 }
560 SK_ALWAYSBREAK(done == fDoneSpans); 561 SK_ALWAYSBREAK(done == fDoneSpans);
561 // if (fAngles.count() ) { 562 // if (fAngles.count() ) {
562 // fAngles.begin()->debugValidateLoop(); 563 // fAngles.begin()->debugValidateLoop();
563 // } 564 // }
564 #endif 565 #endif
565 } 566 }
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsDebug.h ('k') | tests/PathOpsDebug.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698