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

Unified Diff: src/core/SkPath.cpp

Issue 1037953004: add conics to path ops (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: turn off pathops specific debuggging Created 5 years, 8 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 | « gyp/pathops_unittest.gypi ('k') | src/pathops/SkAddIntersections.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPath.cpp
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 19e7048869a4adb34703b389c2970361037739e3..45429a6e1253bd9f5b93481b9a3e5d48af2508ee 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -1966,11 +1966,13 @@ void SkPath::dump(SkWStream* wStream, bool forceClose, bool dumpAsHex) const {
verb = kDone_Verb; // stop the loop
break;
}
+ if (!wStream && builder.size()) {
+ SkDebugf("%s", builder.c_str());
+ builder.reset();
+ }
}
if (wStream) {
wStream->writeText(builder.c_str());
- } else {
- SkDebugf("%s", builder.c_str());
}
}
« no previous file with comments | « gyp/pathops_unittest.gypi ('k') | src/pathops/SkAddIntersections.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698