caryclark | 45fa447 | 2015-01-16 07:04:10 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2014 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 | |
| 8 | #include "SkPathOpsTSect.h" |
| 9 | |
| 10 | int SkIntersections::intersectB(const SkDCubic& cubic1, const SkDCubic& cubic2) { |
| 11 | SkTSect<SkDCubic> sect1(cubic1 PATH_OPS_DEBUG_PARAMS(1)); |
| 12 | SkTSect<SkDCubic> sect2(cubic2 PATH_OPS_DEBUG_PARAMS(2)); |
| 13 | SkTSect<SkDCubic>::BinarySearch(§1, §2, this); |
| 14 | return used(); |
| 15 | } |