diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pathops/SkPathOpsDebug.cpp | 24 | ||||
-rw-r--r-- | src/pathops/SkPathOpsDebug.h | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/pathops/SkPathOpsDebug.cpp b/src/pathops/SkPathOpsDebug.cpp index 755ce5cf15..f0a8da3136 100644 --- a/src/pathops/SkPathOpsDebug.cpp +++ b/src/pathops/SkPathOpsDebug.cpp @@ -63,9 +63,9 @@ bool SkPathOpsDebug::ChaseContains(const SkTDArray<SkOpSpanBase* >& chaseArray, return false; } #endif -
-#if DEBUG_ACTIVE_SPANS
-SkString SkPathOpsDebug::gActiveSpans;
+ +#if DEBUG_ACTIVE_SPANS +SkString SkPathOpsDebug::gActiveSpans; #endif #if DEBUG_COIN @@ -333,15 +333,15 @@ void SkPathOpsDebug::ShowActiveSpans(SkOpContourHead* contourList) { do { contour->debugShowActiveSpans(&str); } while ((contour = contour->next())); - if (!gActiveSpans.equals(str)) {
- const char* s = str.c_str();
- const char* end;
- while ((end = strchr(s, '\n'))) {
- SkDebugf("%.*s", end - s + 1, s);
- s = end + 1;
- }
- gActiveSpans.set(str);
- }
+ if (!gActiveSpans.equals(str)) { + const char* s = str.c_str(); + const char* end; + while ((end = strchr(s, '\n'))) { + SkDebugf("%.*s", end - s + 1, s); + s = end + 1; + } + gActiveSpans.set(str); + } #endif } diff --git a/src/pathops/SkPathOpsDebug.h b/src/pathops/SkPathOpsDebug.h index 97fa534a2a..65aedc55df 100644 --- a/src/pathops/SkPathOpsDebug.h +++ b/src/pathops/SkPathOpsDebug.h @@ -394,8 +394,8 @@ public: static void VerifySimplify(const SkPath& path, const SkPath& result); #endif -#if DEBUG_ACTIVE_SPANS
- static SkString gActiveSpans;
+#if DEBUG_ACTIVE_SPANS + static SkString gActiveSpans; #endif }; |