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

Side by Side Diff: src/pathops/SkOpSegment.h

Issue 1809733002: detach -> release (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: (C) Created 4 years, 9 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/SkOpCoincidence.cpp ('k') | src/pathops/SkOpSegment.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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef SkOpSegment_DEFINE 7 #ifndef SkOpSegment_DEFINE
8 #define SkOpSegment_DEFINE 8 #define SkOpSegment_DEFINE
9 9
10 #include "SkOpAngle.h" 10 #include "SkOpAngle.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 #if DEBUG_ACTIVE_SPANS 166 #if DEBUG_ACTIVE_SPANS
167 void debugShowActiveSpans() const; 167 void debugShowActiveSpans() const;
168 #endif 168 #endif
169 #if DEBUG_MARK_DONE 169 #if DEBUG_MARK_DONE
170 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding) ; 170 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding) ;
171 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding, int oppWinding); 171 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding, int oppWinding);
172 #endif 172 #endif
173 173
174 const SkOpSpanBase* debugSpan(int id) const; 174 const SkOpSpanBase* debugSpan(int id) const;
175 void debugValidate() const; 175 void debugValidate() const;
176 void detach(const SkOpSpan* ); 176 void release(const SkOpSpan* );
177 double distSq(double t, const SkOpAngle* opp) const; 177 double distSq(double t, const SkOpAngle* opp) const;
178 178
179 bool done() const { 179 bool done() const {
180 SkASSERT(fDoneCount <= fCount); 180 SkASSERT(fDoneCount <= fCount);
181 return fDoneCount == fCount; 181 return fDoneCount == fCount;
182 } 182 }
183 183
184 bool done(const SkOpAngle* angle) const { 184 bool done(const SkOpAngle* angle) const {
185 return angle->start()->starter(angle->end())->done(); 185 return angle->start()->starter(angle->end())->done();
186 } 186 }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 SkPathOpsBounds fBounds; // tight bounds 416 SkPathOpsBounds fBounds; // tight bounds
417 SkScalar fWeight; 417 SkScalar fWeight;
418 int fCount; // number of spans (one for a non-intersecting segment) 418 int fCount; // number of spans (one for a non-intersecting segment)
419 int fDoneCount; // number of processed spans (zero initially) 419 int fDoneCount; // number of processed spans (zero initially)
420 SkPath::Verb fVerb; 420 SkPath::Verb fVerb;
421 bool fVisited; // used by missing coincidence check 421 bool fVisited; // used by missing coincidence check
422 SkDEBUGCODE(int fID); 422 SkDEBUGCODE(int fID);
423 }; 423 };
424 424
425 #endif 425 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpCoincidence.cpp ('k') | src/pathops/SkOpSegment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698