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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pathops/SkOpBuilder.cpp ('k') | src/pathops/SkOpCubicHull.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpCoincidence.h
diff --git a/src/pathops/SkOpCoincidence.h b/src/pathops/SkOpCoincidence.h
new file mode 100644
index 0000000000000000000000000000000000000000..287bfd12d4f87a197adb61f4da61140c3cddcbfd
--- /dev/null
+++ b/src/pathops/SkOpCoincidence.h
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#ifndef SkOpCoincidence_DEFINED
+#define SkOpCoincidence_DEFINED
+
+#include "SkOpTAllocator.h"
+#include "SkOpSpan.h"
+
+class SkOpPtT;
+
+struct SkCoincidentSpans {
+ SkCoincidentSpans* fNext;
+ SkOpPtT* fCoinPtTStart;
+ SkOpPtT* fCoinPtTEnd;
+ SkOpPtT* fOppPtTStart;
+ SkOpPtT* fOppPtTEnd;
+ bool fFlipped;
+};
+
+class SkOpCoincidence {
+public:
+ SkOpCoincidence()
+ : fHead(NULL) {
+ }
+
+ void add(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTStart,
+ SkOpPtT* oppPtTEnd, bool flipped, SkChunkAlloc* allocator);
+ void apply();
+ bool contains(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTStart,
+ SkOpPtT* oppPtTEnd, bool flipped);
+ void dump() const;
+ void mark();
+
+ SkCoincidentSpans* fHead;
+};
+
+#endif
« 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