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

Side by Side Diff: src/pathops/SkOpSpan.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/SkOpSegment.cpp ('k') | src/pathops/SkOpSpan.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 SkOpSpan_DEFINED 7 #ifndef SkOpSpan_DEFINED
8 #define SkOpSpan_DEFINED 8 #define SkOpSpan_DEFINED
9 9
10 #include "SkPathOpsDebug.h" 10 #include "SkPathOpsDebug.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 const SkOpSpan* next = this; 397 const SkOpSpan* next = this;
398 while ((next = next->fCoincident) != this) { 398 while ((next = next->fCoincident) != this) {
399 if (next == coin) { 399 if (next == coin) {
400 return true; 400 return true;
401 } 401 }
402 } 402 }
403 return false; 403 return false;
404 } 404 }
405 405
406 bool debugCoinLoopCheck() const; 406 bool debugCoinLoopCheck() const;
407 void detach(SkOpPtT* ); 407 void release(SkOpPtT* );
408 408
409 bool done() const { 409 bool done() const {
410 SkASSERT(!final()); 410 SkASSERT(!final());
411 return fDone; 411 return fDone;
412 } 412 }
413 413
414 void dumpCoin() const; 414 void dumpCoin() const;
415 bool dumpSpan() const; 415 bool dumpSpan() const;
416 void init(SkOpSegment* parent, SkOpSpan* prev, double t, const SkPoint& pt); 416 void init(SkOpSegment* parent, SkOpSpan* prev, double t, const SkPoint& pt);
417 417
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 int fWindSum; // accumulated from contours surrounding this one. 511 int fWindSum; // accumulated from contours surrounding this one.
512 int fOppSum; // for binary operators: the opposite winding sum 512 int fOppSum; // for binary operators: the opposite winding sum
513 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident 513 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident
514 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v alue goes here 514 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v alue goes here
515 int fTopTTry; // specifies direction and t value to try next 515 int fTopTTry; // specifies direction and t value to try next
516 bool fDone; // if set, this span to next higher T has been processed 516 bool fDone; // if set, this span to next higher T has been processed
517 mutable bool fAlreadyAdded; 517 mutable bool fAlreadyAdded;
518 }; 518 };
519 519
520 #endif 520 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpSegment.cpp ('k') | src/pathops/SkOpSpan.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698