OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |