| 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 SkPathOpsQuad_DEFINED | 8 #ifndef SkPathOpsQuad_DEFINED |
| 9 #define SkPathOpsQuad_DEFINED | 9 #define SkPathOpsQuad_DEFINED |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 SkDPoint subDivide(const SkDPoint& a, const SkDPoint& c, double t1, double t
2) const; | 55 SkDPoint subDivide(const SkDPoint& a, const SkDPoint& c, double t1, double t
2) const; |
| 56 static SkDPoint SubDivide(const SkPoint pts[3], const SkDPoint& a, const SkD
Point& c, | 56 static SkDPoint SubDivide(const SkPoint pts[3], const SkDPoint& a, const SkD
Point& c, |
| 57 double t1, double t2) { | 57 double t1, double t2) { |
| 58 SkDQuad quad; | 58 SkDQuad quad; |
| 59 quad.set(pts); | 59 quad.set(pts); |
| 60 return quad.subDivide(a, c, t1, t2); | 60 return quad.subDivide(a, c, t1, t2); |
| 61 } | 61 } |
| 62 SkDCubic toCubic() const; | 62 SkDCubic toCubic() const; |
| 63 SkDPoint top(double startT, double endT) const; | 63 SkDPoint top(double startT, double endT) const; |
| 64 |
| 65 #ifdef SK_DEBUG |
| 66 void dump(); |
| 67 #endif |
| 64 private: | 68 private: |
| 65 // static double Tangent(const double* quadratic, double t); // uncalled | 69 // static double Tangent(const double* quadratic, double t); // uncalled |
| 66 }; | 70 }; |
| 67 | 71 |
| 68 #endif | 72 #endif |
| OLD | NEW |