| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkPathOpsDebug.h" | 8 #include "SkPathOpsDebug.h" |
| 9 #include "SkPath.h" | 9 #include "SkPath.h" |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 angles[index]->dump(); | 96 angles[index]->dump(); |
| 97 } | 97 } |
| 98 } | 98 } |
| 99 #endif // SK_DEBUG || !FORCE_RELEASE | 99 #endif // SK_DEBUG || !FORCE_RELEASE |
| 100 | 100 |
| 101 #ifdef SK_DEBUG | 101 #ifdef SK_DEBUG |
| 102 void SkOpSpan::dump() const { | 102 void SkOpSpan::dump() const { |
| 103 SkDebugf("t="); | 103 SkDebugf("t="); |
| 104 DebugDumpDouble(fT); | 104 DebugDumpDouble(fT); |
| 105 SkDebugf(" pt="); | 105 SkDebugf(" pt="); |
| 106 SkDPoint::DumpSkPoint(fPt); | 106 SkDPoint::dump(fPt); |
| 107 SkDebugf(" other.fID=%d", fOther->debugID()); | 107 SkDebugf(" other.fID=%d", fOther->debugID()); |
| 108 SkDebugf(" [%d] otherT=", fOtherIndex); | 108 SkDebugf(" [%d] otherT=", fOtherIndex); |
| 109 DebugDumpDouble(fOtherT); | 109 DebugDumpDouble(fOtherT); |
| 110 SkDebugf(" windSum="); | 110 SkDebugf(" windSum="); |
| 111 SkPathOpsDebug::WindingPrintf(fWindSum); | 111 SkPathOpsDebug::WindingPrintf(fWindSum); |
| 112 if (SkPathOpsDebug::ValidWind(fOppSum) || fOppValue != 0) { | 112 if (SkPathOpsDebug::ValidWind(fOppSum) || fOppValue != 0) { |
| 113 SkDebugf(" oppSum="); | 113 SkDebugf(" oppSum="); |
| 114 SkPathOpsDebug::WindingPrintf(fOppSum); | 114 SkPathOpsDebug::WindingPrintf(fOppSum); |
| 115 } | 115 } |
| 116 SkDebugf(" windValue=%d", fWindValue); | 116 SkDebugf(" windValue=%d", fWindValue); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 void Dump(const SkTArray<class SkOpAngle, true>* angles) { | 151 void Dump(const SkTArray<class SkOpAngle, true>* angles) { |
| 152 SkPathOpsDebug::DumpAngles(*angles); | 152 SkPathOpsDebug::DumpAngles(*angles); |
| 153 } | 153 } |
| 154 | 154 |
| 155 void Dump(const SkTArray<class SkOpAngle* , true>* angles) { | 155 void Dump(const SkTArray<class SkOpAngle* , true>* angles) { |
| 156 SkPathOpsDebug::DumpAngles(*angles); | 156 SkPathOpsDebug::DumpAngles(*angles); |
| 157 } | 157 } |
| 158 | 158 |
| 159 #endif | 159 #endif |
| 160 |
| 161 #if !FORCE_RELEASE && 0 // enable when building without extended test |
| 162 void SkPathOpsDebug::ShowPath(const SkPath& one, const SkPath& two, SkPathOp op,
const char* name) { |
| 163 } |
| 164 #endif |
| OLD | NEW |