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

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

Issue 853223002: new files for pathops geometric intersection (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove visualizer tool so cl contains only pure adds Created 5 years, 11 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/SkOpBuilder.cpp ('k') | src/pathops/SkOpCubicHull.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef SkOpCoincidence_DEFINED
8 #define SkOpCoincidence_DEFINED
9
10 #include "SkOpTAllocator.h"
11 #include "SkOpSpan.h"
12
13 class SkOpPtT;
14
15 struct SkCoincidentSpans {
16 SkCoincidentSpans* fNext;
17 SkOpPtT* fCoinPtTStart;
18 SkOpPtT* fCoinPtTEnd;
19 SkOpPtT* fOppPtTStart;
20 SkOpPtT* fOppPtTEnd;
21 bool fFlipped;
22 };
23
24 class SkOpCoincidence {
25 public:
26 SkOpCoincidence()
27 : fHead(NULL) {
28 }
29
30 void add(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTStart,
31 SkOpPtT* oppPtTEnd, bool flipped, SkChunkAlloc* allocator);
32 void apply();
33 bool contains(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTSta rt,
34 SkOpPtT* oppPtTEnd, bool flipped);
35 void dump() const;
36 void mark();
37
38 SkCoincidentSpans* fHead;
39 };
40
41 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpBuilder.cpp ('k') | src/pathops/SkOpCubicHull.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698