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

Unified Diff: tests/PathOpsDebug.cpp

Issue 686843002: Revert of harden pathops for pathological test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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/PathOpsBattles.cpp ('k') | tests/PathOpsExtendedTest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsDebug.cpp
diff --git a/tests/PathOpsDebug.cpp b/tests/PathOpsDebug.cpp
index c4fbbfa69517610c7168e6fb9e6f361b2c455e78..8ac38aaf6dc8998c0ca15c23bfe31b8a3e20351c 100755
--- a/tests/PathOpsDebug.cpp
+++ b/tests/PathOpsDebug.cpp
@@ -19,9 +19,6 @@
}
}
-inline void DebugDumpHexFloat(float x) {
- SkDebugf("SkBits2Float(0x%08x)", SkFloat2Bits(x));
-}
#if DEBUG_SHOW_TEST_NAME
@@ -416,17 +413,6 @@
SkDebugf("}");
}
-void SkDPoint::DumpHex(const SkPoint& pt) {
- SkDebugf("{");
- DebugDumpHexFloat(pt.fX);
- SkDebugf(", ");
- DebugDumpHexFloat(pt.fY);
- SkDebugf("}");
-}
-
-void SkDQuad::dump() const {
- dumpComma("");
-}
void SkDQuad::dumpComma(const char* comma) const {
SkDebugf("{{");
@@ -439,6 +425,10 @@
SkDebugf("}}%s\n", comma ? comma : "");
}
+void SkDQuad::dump() const {
+ dumpComma("");
+}
+
void SkIntersectionHelper::dump() const {
SkDPoint::Dump(pts()[0]);
SkDPoint::Dump(pts()[1]);
@@ -499,18 +489,6 @@
SkDebugf(", ");
} while (++index < last);
SkDPoint::Dump(fPts[index]);
- SkDebugf("}}\n");
-}
-
-void SkOpSegment::dumpHexPts() const {
- int last = SkPathOpsVerbToPoints(fVerb);
- SkDebugf("((SkOpSegment*) 0x%p) [%d] {{", this, debugID());
- int index = 0;
- do {
- SkDPoint::DumpHex(fPts[index]);
- SkDebugf(", ");
- } while (++index < last);
- SkDPoint::DumpHex(fPts[index]);
SkDebugf("}}\n");
}
« no previous file with comments | « tests/PathOpsBattles.cpp ('k') | tests/PathOpsExtendedTest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698