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

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

Issue 1140813002: deal more consistently with unsortable edges (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix linux warning Created 5 years, 7 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 | « no previous file | 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 22 matching lines...) Expand all
33 SkOpPtT* oppPtTEnd, SkChunkAlloc* allocator); 33 SkOpPtT* oppPtTEnd, SkChunkAlloc* allocator);
34 bool addMissing(SkChunkAlloc* allocator); 34 bool addMissing(SkChunkAlloc* allocator);
35 void addMissing(SkCoincidentSpans* check, SkChunkAlloc* allocator); 35 void addMissing(SkCoincidentSpans* check, SkChunkAlloc* allocator);
36 bool apply(); 36 bool apply();
37 bool contains(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTSta rt, 37 bool contains(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTSta rt,
38 SkOpPtT* oppPtTEnd, bool flipped); 38 SkOpPtT* oppPtTEnd, bool flipped);
39 void debugShowCoincidence() const; 39 void debugShowCoincidence() const;
40 void detach(SkCoincidentSpans* ); 40 void detach(SkCoincidentSpans* );
41 void dump() const; 41 void dump() const;
42 void expand(); 42 void expand();
43 bool extend(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTStart ,
44 SkOpPtT* oppPtTEnd);
43 void fixUp(SkOpPtT* deleted, SkOpPtT* kept); 45 void fixUp(SkOpPtT* deleted, SkOpPtT* kept);
44 void mark(); 46 void mark();
45 47
46 private: 48 private:
47 bool addIfMissing(const SkOpPtT* over1s, const SkOpPtT* over1e, 49 bool addIfMissing(const SkOpPtT* over1s, const SkOpPtT* over1e,
48 const SkOpPtT* over2s, const SkOpPtT* over2e, double tStar t, double tEnd, 50 const SkOpPtT* over2s, const SkOpPtT* over2e, double tStar t, double tEnd,
49 SkOpPtT* coinPtTStart, const SkOpPtT* coinPtTEnd, 51 SkOpPtT* coinPtTStart, const SkOpPtT* coinPtTEnd,
50 SkOpPtT* oppPtTStart, const SkOpPtT* oppPtTEnd, 52 SkOpPtT* oppPtTStart, const SkOpPtT* oppPtTEnd,
51 SkChunkAlloc* allocator); 53 SkChunkAlloc* allocator);
52 bool overlap(const SkOpPtT* coinStart1, const SkOpPtT* coinEnd1, 54 bool overlap(const SkOpPtT* coinStart1, const SkOpPtT* coinEnd1,
53 const SkOpPtT* coinStart2, const SkOpPtT* coinEnd2, 55 const SkOpPtT* coinStart2, const SkOpPtT* coinEnd2,
54 double* overS, double* overE) const; 56 double* overS, double* overE) const;
55 57
56 SkCoincidentSpans* fHead; 58 SkCoincidentSpans* fHead;
57 }; 59 };
58 60
59 #endif 61 #endif
OLDNEW
« no previous file with comments | « no previous file | src/pathops/SkOpCoincidence.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698