OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 SkPathOpsConic_DEFINED | 8 #ifndef SkPathOpsConic_DEFINED |
9 #define SkPathOpsConic_DEFINED | 9 #define SkPathOpsConic_DEFINED |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 SkScalar* weight) const; | 102 SkScalar* weight) const; |
103 | 103 |
104 static SkDPoint SubDivide(const SkPoint pts[kPointCount], SkScalar weight, | 104 static SkDPoint SubDivide(const SkPoint pts[kPointCount], SkScalar weight, |
105 const SkDPoint& a, const SkDPoint& c, | 105 const SkDPoint& a, const SkDPoint& c, |
106 double t1, double t2, SkScalar* newWeight) { | 106 double t1, double t2, SkScalar* newWeight) { |
107 SkDConic conic; | 107 SkDConic conic; |
108 conic.set(pts, weight); | 108 conic.set(pts, weight); |
109 return conic.subDivide(a, c, t1, t2, newWeight); | 109 return conic.subDivide(a, c, t1, t2, newWeight); |
110 } | 110 } |
111 | 111 |
112 SkDPoint top(double startT, double endT) const; | 112 SkDPoint top(double startT, double endT, double* topT) const; |
113 | 113 |
114 // utilities callable by the user from the debugger when the implementation
code is linked in | 114 // utilities callable by the user from the debugger when the implementation
code is linked in |
115 void dump() const; | 115 void dump() const; |
116 void dumpID(int id) const; | 116 void dumpID(int id) const; |
117 void dumpInner() const; | 117 void dumpInner() const; |
118 }; | 118 }; |
119 | 119 |
120 | 120 |
121 #endif | 121 #endif |
OLD | NEW |