| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 | 7 |
| 8 #ifndef SkPathOpsCubic_DEFINED | 8 #ifndef SkPathOpsCubic_DEFINED |
| 9 #define SkPathOpsCubic_DEFINED | 9 #define SkPathOpsCubic_DEFINED |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 static void SubDivide(const SkPoint pts[4], const SkDPoint& a, const SkDPoin
t& d, double t1, | 70 static void SubDivide(const SkPoint pts[4], const SkDPoint& a, const SkDPoin
t& d, double t1, |
| 71 double t2, SkDPoint p[2]) { | 71 double t2, SkDPoint p[2]) { |
| 72 SkDCubic cubic; | 72 SkDCubic cubic; |
| 73 cubic.set(pts); | 73 cubic.set(pts); |
| 74 cubic.subDivide(a, d, t1, t2, p); | 74 cubic.subDivide(a, d, t1, t2, p); |
| 75 } | 75 } |
| 76 | 76 |
| 77 SkDPoint top(double startT, double endT) const; | 77 SkDPoint top(double startT, double endT) const; |
| 78 void toQuadraticTs(double precision, SkTArray<double, true>* ts) const; | 78 void toQuadraticTs(double precision, SkTArray<double, true>* ts) const; |
| 79 SkDQuad toQuad() const; | 79 SkDQuad toQuad() const; |
| 80 |
| 81 #ifdef SK_DEBUG |
| 82 void dump(); |
| 83 #endif |
| 80 }; | 84 }; |
| 81 | 85 |
| 82 #endif | 86 #endif |
| OLD | NEW |