Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: src/pathops/SkPathOpsConic.h

Issue 1096923003: working on initial winding for cubics (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pathops/SkPathOpsCommon.cpp ('k') | src/pathops/SkPathOpsConic.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsCommon.cpp ('k') | src/pathops/SkPathOpsConic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698