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

Side by Side Diff: tests/PathOpsTSectDebug.h

Issue 1407003016: Reland of path ops: fix conic weight and partial coincidence (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 | « tests/PathOpsSkpTest.cpp ('k') | tools/pathops_sorter.htm » ('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 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 {
12 if (!!fCoincident != fCoincident) {
13 return '?';
14 }
15 return fCoincident ? '*' : 0;
16 }
17
18 template<typename TCurve, typename OppCurve>
11 void SkTCoincident<TCurve, OppCurve>::dump() const { 19 void SkTCoincident<TCurve, OppCurve>::dump() const {
12 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,
13 fCoincident ? " coincident" : ""); 21 fCoincident ? " coincident" : "");
14 } 22 }
15 23
16 template<typename TCurve, typename OppCurve> 24 template<typename TCurve, typename OppCurve>
17 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 {
18 const SkTSpan<TCurve, OppCurve>* test = fHead; 26 const SkTSpan<TCurve, OppCurve>* test = fHead;
19 do { 27 do {
20 if (test->debugID() == id) { 28 if (test->debugID() == id) {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void SkTSpan<TCurve, OppCurve>::dumpCoin() const { 202 void SkTSpan<TCurve, OppCurve>::dumpCoin() const {
195 dumpID(); 203 dumpID();
196 SkDebugf(" coinStart "); 204 SkDebugf(" coinStart ");
197 fCoinStart.dump(); 205 fCoinStart.dump();
198 SkDebugf(" coinEnd "); 206 SkDebugf(" coinEnd ");
199 fCoinEnd.dump(); 207 fCoinEnd.dump();
200 } 208 }
201 209
202 template<typename TCurve, typename OppCurve> 210 template<typename TCurve, typename OppCurve>
203 void SkTSpan<TCurve, OppCurve>::dumpID() const { 211 void SkTSpan<TCurve, OppCurve>::dumpID() const {
204 if (fCoinStart.isCoincident()) { 212 char cS = fCoinStart.dumpIsCoincidentStr();
205 SkDebugf("%c", '*'); 213 if (cS) {
214 SkDebugf("%c", cS);
206 } 215 }
207 SkDebugf("%d", debugID()); 216 SkDebugf("%d", debugID());
208 if (fCoinEnd.isCoincident()) { 217 char cE = fCoinEnd.dumpIsCoincidentStr();
209 SkDebugf("%c", '*'); 218 if (cE) {
219 SkDebugf("%c", cE);
210 } 220 }
211 } 221 }
OLDNEW
« no previous file with comments | « tests/PathOpsSkpTest.cpp ('k') | tools/pathops_sorter.htm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698