Index: src/pathops/SkPathOpsTCubicSect.cpp |
diff --git a/src/pathops/SkPathOpsTCubicSect.cpp b/src/pathops/SkPathOpsTCubicSect.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0b3ddd7d0d5db4de34915c40710982afd5d38de3 |
--- /dev/null |
+++ b/src/pathops/SkPathOpsTCubicSect.cpp |
@@ -0,0 +1,15 @@ |
+/* |
+ * Copyright 2014 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#include "SkPathOpsTSect.h" |
+ |
+int SkIntersections::intersectB(const SkDCubic& cubic1, const SkDCubic& cubic2) { |
+ SkTSect<SkDCubic> sect1(cubic1 PATH_OPS_DEBUG_PARAMS(1)); |
+ SkTSect<SkDCubic> sect2(cubic2 PATH_OPS_DEBUG_PARAMS(2)); |
+ SkTSect<SkDCubic>::BinarySearch(§1, §2, this); |
+ return used(); |
+} |