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

Unified Diff: tests/PathOpsTSectDebug.h

Issue 1408923003: Revert 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/PathOpsSkpTest.cpp ('k') | tools/pathops_sorter.htm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsTSectDebug.h
diff --git a/tests/PathOpsTSectDebug.h b/tests/PathOpsTSectDebug.h
index 68ef4b7db187be554ec2bf44f70d4f2ce4fd67b1..9db904d06bef6df7c66e2f4abe69c17456acdd3b 100644
--- a/tests/PathOpsTSectDebug.h
+++ b/tests/PathOpsTSectDebug.h
@@ -6,14 +6,6 @@
*/
#include "SkPathOpsTSect.h"
-
-template<typename TCurve, typename OppCurve>
-char SkTCoincident<TCurve, OppCurve>::dumpIsCoincidentStr() const {
- if (!!fCoincident != fCoincident) {
- return '?';
- }
- return fCoincident ? '*' : 0;
-}
template<typename TCurve, typename OppCurve>
void SkTCoincident<TCurve, OppCurve>::dump() const {
@@ -209,13 +201,11 @@
template<typename TCurve, typename OppCurve>
void SkTSpan<TCurve, OppCurve>::dumpID() const {
- char cS = fCoinStart.dumpIsCoincidentStr();
- if (cS) {
- SkDebugf("%c", cS);
+ if (fCoinStart.isCoincident()) {
+ SkDebugf("%c", '*');
}
SkDebugf("%d", debugID());
- char cE = fCoinEnd.dumpIsCoincidentStr();
- if (cE) {
- SkDebugf("%c", cE);
- }
-}
+ if (fCoinEnd.isCoincident()) {
+ SkDebugf("%c", '*');
+ }
+}
« 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