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

Side by Side Diff: src/pathops/SkPathOpsDebug.cpp

Issue 2321973005: Rewriting path writer (Closed)
Patch Set: revert unneeded test changes Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/pathops/SkPathOpsDebug.h ('k') | src/pathops/SkPathOpsOp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "SkMutex.h" 8 #include "SkMutex.h"
9 #include "SkOpCoincidence.h" 9 #include "SkOpCoincidence.h"
10 #include "SkOpContour.h" 10 #include "SkOpContour.h"
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 test = test->fNext; 1145 test = test->fNext;
1146 } while (test->fNext != this); 1146 } while (test->fNext != this);
1147 } 1147 }
1148 #endif 1148 #endif
1149 1149
1150 #if DEBUG_ANGLE 1150 #if DEBUG_ANGLE
1151 SkString SkOpAngle::debugPart() const { 1151 SkString SkOpAngle::debugPart() const {
1152 SkString result; 1152 SkString result;
1153 switch (this->segment()->verb()) { 1153 switch (this->segment()->verb()) {
1154 case SkPath::kLine_Verb: 1154 case SkPath::kLine_Verb:
1155 result.printf(LINE_DEBUG_STR " id=%d", LINE_DEBUG_DATA(fCurvePart), 1155 result.printf(LINE_DEBUG_STR " id=%d", LINE_DEBUG_DATA(fPart.fCurve) ,
1156 this->segment()->debugID()); 1156 this->segment()->debugID());
1157 break; 1157 break;
1158 case SkPath::kQuad_Verb: 1158 case SkPath::kQuad_Verb:
1159 result.printf(QUAD_DEBUG_STR " id=%d", QUAD_DEBUG_DATA(fCurvePart), 1159 result.printf(QUAD_DEBUG_STR " id=%d", QUAD_DEBUG_DATA(fPart.fCurve) ,
1160 this->segment()->debugID()); 1160 this->segment()->debugID());
1161 break; 1161 break;
1162 case SkPath::kConic_Verb: 1162 case SkPath::kConic_Verb:
1163 result.printf(CONIC_DEBUG_STR " id=%d", 1163 result.printf(CONIC_DEBUG_STR " id=%d",
1164 CONIC_DEBUG_DATA(fCurvePart, fCurvePart.fConic.fWeight), 1164 CONIC_DEBUG_DATA(fPart.fCurve, fPart.fCurve.fConic.fWeight),
1165 this->segment()->debugID()); 1165 this->segment()->debugID());
1166 break; 1166 break;
1167 case SkPath::kCubic_Verb: 1167 case SkPath::kCubic_Verb:
1168 result.printf(CUBIC_DEBUG_STR " id=%d", CUBIC_DEBUG_DATA(fCurvePart) , 1168 result.printf(CUBIC_DEBUG_STR " id=%d", CUBIC_DEBUG_DATA(fPart.fCurv e),
1169 this->segment()->debugID()); 1169 this->segment()->debugID());
1170 break; 1170 break;
1171 default: 1171 default:
1172 SkASSERT(0); 1172 SkASSERT(0);
1173 } 1173 }
1174 return result; 1174 return result;
1175 } 1175 }
1176 #endif 1176 #endif
1177 1177
1178 #if DEBUG_SORT 1178 #if DEBUG_SORT
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 #endif 2637 #endif
2638 SkPath::FillType fillType = path.getFillType(); 2638 SkPath::FillType fillType = path.getFillType();
2639 SkASSERT(fillType >= SkPath::kWinding_FillType && fillType <= SkPath::kInver seEvenOdd_FillType); 2639 SkASSERT(fillType >= SkPath::kWinding_FillType && fillType <= SkPath::kInver seEvenOdd_FillType);
2640 if (includeDeclaration) { 2640 if (includeDeclaration) {
2641 SkDebugf(" SkPath %s;\n", name); 2641 SkDebugf(" SkPath %s;\n", name);
2642 } 2642 }
2643 SkDebugf(" %s.setFillType(SkPath::%s);\n", name, gFillTypeStr[fillType]); 2643 SkDebugf(" %s.setFillType(SkPath::%s);\n", name, gFillTypeStr[fillType]);
2644 iter.setPath(path); 2644 iter.setPath(path);
2645 showPathContours(iter, name); 2645 showPathContours(iter, name);
2646 } 2646 }
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsDebug.h ('k') | src/pathops/SkPathOpsOp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698