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

Side by Side Diff: src/pathops/SkOpCoincidence.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/lazy/SkDiscardablePixelRef.cpp ('k') | src/pathops/SkOpCoincidence.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 #ifndef SkOpCoincidence_DEFINED 7 #ifndef SkOpCoincidence_DEFINED
8 #define SkOpCoincidence_DEFINED 8 #define SkOpCoincidence_DEFINED
9 9
10 #include "SkOpTAllocator.h" 10 #include "SkOpTAllocator.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 SkDEBUGCODE(fDebugState = debugState); 72 SkDEBUGCODE(fDebugState = debugState);
73 } 73 }
74 74
75 void debugFixAligned(const char* id, SkPathOpsDebug::GlitchLog* ) const; 75 void debugFixAligned(const char* id, SkPathOpsDebug::GlitchLog* ) const;
76 void debugShowCoincidence() const; 76 void debugShowCoincidence() const;
77 77
78 const SkOpSpanBase* debugSpan(int id) const { 78 const SkOpSpanBase* debugSpan(int id) const {
79 return SkDEBUGRELEASE(fDebugState->debugSpan(id), nullptr); 79 return SkDEBUGRELEASE(fDebugState->debugSpan(id), nullptr);
80 } 80 }
81 81
82 void detach(SkCoincidentSpans* ); 82 void release(SkCoincidentSpans* );
83 void dump() const; 83 void dump() const;
84 bool expand(); 84 bool expand();
85 bool extend(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTStart , 85 bool extend(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTStart ,
86 SkOpPtT* oppPtTEnd); 86 SkOpPtT* oppPtTEnd);
87 void findOverlaps(SkOpCoincidence* , SkChunkAlloc* allocator) const; 87 void findOverlaps(SkOpCoincidence* , SkChunkAlloc* allocator) const;
88 void fixAligned(); 88 void fixAligned();
89 void fixUp(SkOpPtT* deleted, SkOpPtT* kept); 89 void fixUp(SkOpPtT* deleted, SkOpPtT* kept);
90 90
91 bool isEmpty() const { 91 bool isEmpty() const {
92 return !fHead; 92 return !fHead;
(...skipping 24 matching lines...) Expand all
117 double* overS, double* overE) const; 117 double* overS, double* overE) const;
118 118
119 bool testForCoincidence(const SkCoincidentSpans* outer, const SkOpPtT* testS , 119 bool testForCoincidence(const SkCoincidentSpans* outer, const SkOpPtT* testS ,
120 const SkOpPtT* testE) const; 120 const SkOpPtT* testE) const;
121 SkCoincidentSpans* fHead; 121 SkCoincidentSpans* fHead;
122 SkCoincidentSpans* fTop; 122 SkCoincidentSpans* fTop;
123 SkDEBUGCODE_(SkOpGlobalState* fDebugState); 123 SkDEBUGCODE_(SkOpGlobalState* fDebugState);
124 }; 124 };
125 125
126 #endif 126 #endif
OLDNEW
« no previous file with comments | « src/lazy/SkDiscardablePixelRef.cpp ('k') | src/pathops/SkOpCoincidence.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698