OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #include "SkPathOpsTSect.h" | 8 #include "SkPathOpsTSect.h" |
9 | 9 |
10 template<typename TCurve, typename OppCurve> | 10 template<typename TCurve, typename OppCurve> |
11 char SkTCoincident<TCurve, OppCurve>::dumpIsCoincidentStr() const { | 11 char SkTCoincident<TCurve, OppCurve>::dumpIsCoincidentStr() const { |
12 if (!!fCoincident != fCoincident) { | 12 if (!!fMatch != fMatch) { |
13 return '?'; | 13 return '?'; |
14 } | 14 } |
15 return fCoincident ? '*' : 0; | 15 return fMatch ? '*' : 0; |
16 } | 16 } |
17 | 17 |
18 template<typename TCurve, typename OppCurve> | 18 template<typename TCurve, typename OppCurve> |
19 void SkTCoincident<TCurve, OppCurve>::dump() const { | 19 void SkTCoincident<TCurve, OppCurve>::dump() const { |
20 SkDebugf("t=%1.9g pt=(%1.9g,%1.9g)%s\n", fPerpT, fPerpPt.fX, fPerpPt.fY, | 20 SkDebugf("t=%1.9g pt=(%1.9g,%1.9g)%s\n", fPerpT, fPerpPt.fX, fPerpPt.fY, |
21 fCoincident ? " coincident" : ""); | 21 fMatch ? " match" : ""); |
22 } | 22 } |
23 | 23 |
24 template<typename TCurve, typename OppCurve> | 24 template<typename TCurve, typename OppCurve> |
25 const SkTSpan<TCurve, OppCurve>* SkTSect<TCurve, OppCurve>::debugSpan(int id) co
nst { | 25 const SkTSpan<TCurve, OppCurve>* SkTSect<TCurve, OppCurve>::debugSpan(int id) co
nst { |
26 const SkTSpan<TCurve, OppCurve>* test = fHead; | 26 const SkTSpan<TCurve, OppCurve>* test = fHead; |
27 do { | 27 do { |
28 if (test->debugID() == id) { | 28 if (test->debugID() == id) { |
29 return test; | 29 return test; |
30 } | 30 } |
31 } while ((test = test->next())); | 31 } while ((test = test->next())); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 char cS = fCoinStart.dumpIsCoincidentStr(); | 212 char cS = fCoinStart.dumpIsCoincidentStr(); |
213 if (cS) { | 213 if (cS) { |
214 SkDebugf("%c", cS); | 214 SkDebugf("%c", cS); |
215 } | 215 } |
216 SkDebugf("%d", debugID()); | 216 SkDebugf("%d", debugID()); |
217 char cE = fCoinEnd.dumpIsCoincidentStr(); | 217 char cE = fCoinEnd.dumpIsCoincidentStr(); |
218 if (cE) { | 218 if (cE) { |
219 SkDebugf("%c", cE); | 219 SkDebugf("%c", cE); |
220 } | 220 } |
221 } | 221 } |
OLD | NEW |