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

Side by Side Diff: src/core/SkPath.cpp

Issue 311263015: Add dump() to SkClipStack to help with debugging. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add \n. Created 6 years, 6 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/core/SkClipStack.cpp ('k') | src/core/SkRRect.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkBuffer.h" 10 #include "SkBuffer.h"
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 case kQuad_Verb: 2163 case kQuad_Verb:
2164 append_params(&builder, "path.quadTo", &pts[1], 2); 2164 append_params(&builder, "path.quadTo", &pts[1], 2);
2165 break; 2165 break;
2166 case kConic_Verb: 2166 case kConic_Verb:
2167 append_params(&builder, "path.conicTo", &pts[1], 2, iter.conicWe ight()); 2167 append_params(&builder, "path.conicTo", &pts[1], 2, iter.conicWe ight());
2168 break; 2168 break;
2169 case kCubic_Verb: 2169 case kCubic_Verb:
2170 append_params(&builder, "path.cubicTo", &pts[1], 3); 2170 append_params(&builder, "path.cubicTo", &pts[1], 3);
2171 break; 2171 break;
2172 case kClose_Verb: 2172 case kClose_Verb:
2173 builder.append("path.close();\n"); 2173 builder.append("path.close();");
2174 break; 2174 break;
2175 default: 2175 default:
2176 SkDebugf(" path: UNKNOWN VERB %d, aborting dump...\n", verb); 2176 SkDebugf(" path: UNKNOWN VERB %d, aborting dump...\n", verb);
2177 verb = kDone_Verb; // stop the loop 2177 verb = kDone_Verb; // stop the loop
2178 break; 2178 break;
2179 } 2179 }
2180 } 2180 }
2181 SkDebugf("%s\n", builder.c_str()); 2181 SkDebugf("%s\n", builder.c_str());
2182 } 2182 }
2183 2183
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
2883 switch (this->getFillType()) { 2883 switch (this->getFillType()) {
2884 case SkPath::kEvenOdd_FillType: 2884 case SkPath::kEvenOdd_FillType:
2885 case SkPath::kInverseEvenOdd_FillType: 2885 case SkPath::kInverseEvenOdd_FillType:
2886 w &= 1; 2886 w &= 1;
2887 break; 2887 break;
2888 default: 2888 default:
2889 break; 2889 break;
2890 } 2890 }
2891 return SkToBool(w); 2891 return SkToBool(w);
2892 } 2892 }
OLDNEW
« no previous file with comments | « src/core/SkClipStack.cpp ('k') | src/core/SkRRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698