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> |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 template<typename TCurve, typename OppCurve> | 188 template<typename TCurve, typename OppCurve> |
189 void SkTSpan<TCurve, OppCurve>::dumpBounded(int id) const { | 189 void SkTSpan<TCurve, OppCurve>::dumpBounded(int id) const { |
190 SkDEBUGCODE(fDebugSect->dumpBounded(id)); | 190 SkDEBUGCODE(fDebugSect->dumpBounded(id)); |
191 } | 191 } |
192 | 192 |
193 template<typename TCurve, typename OppCurve> | 193 template<typename TCurve, typename OppCurve> |
194 void SkTSpan<TCurve, OppCurve>::dumpBounds() const { | 194 void SkTSpan<TCurve, OppCurve>::dumpBounds() const { |
195 dumpID(); | 195 dumpID(); |
196 SkDebugf(" bounds=(%1.9g,%1.9g, %1.9g,%1.9g) boundsMax=%1.9g%s\n", | 196 SkDebugf(" bounds=(%1.9g,%1.9g, %1.9g,%1.9g) boundsMax=%1.9g%s\n", |
197 fBounds.fLeft, fBounds.fTop, fBounds.fRight, fBounds.fBottom, fBound
sMax, | 197 fBounds.fLeft, fBounds.fTop, fBounds.fRight, fBounds.fBottom, fBound
sMax, |
198 fCollapsed ? " collapsed" : ""); | 198 fCollapsed ? " collapsed" : ""); |
199 } | 199 } |
200 | 200 |
201 template<typename TCurve, typename OppCurve> | 201 template<typename TCurve, typename OppCurve> |
202 void SkTSpan<TCurve, OppCurve>::dumpCoin() const { | 202 void SkTSpan<TCurve, OppCurve>::dumpCoin() const { |
203 dumpID(); | 203 dumpID(); |
204 SkDebugf(" coinStart "); | 204 SkDebugf(" coinStart "); |
205 fCoinStart.dump(); | 205 fCoinStart.dump(); |
206 SkDebugf(" coinEnd "); | 206 SkDebugf(" coinEnd "); |
207 fCoinEnd.dump(); | 207 fCoinEnd.dump(); |
208 } | 208 } |
209 | 209 |
210 template<typename TCurve, typename OppCurve> | 210 template<typename TCurve, typename OppCurve> |
211 void SkTSpan<TCurve, OppCurve>::dumpID() const { | 211 void SkTSpan<TCurve, OppCurve>::dumpID() const { |
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 |