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 <ctype.h> | 10 #include <ctype.h> |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 fPath.moveTo(c); | 211 fPath.moveTo(c); |
212 fPath.lineTo(f); | 212 fPath.lineTo(f); |
213 fPath.close(); | 213 fPath.close(); |
214 } | 214 } |
215 #endif | 215 #endif |
216 c = f; | 216 c = f; |
217 op = '\0'; | 217 op = '\0'; |
218 break; | 218 break; |
219 case '~': { | 219 case '~': { |
220 SkPoint args[2]; | 220 SkPoint args[2]; |
221 data = find_points(data, args, 2, false, NULL); | 221 data = find_points(data, args, 2, false, nullptr); |
222 fPath.moveTo(args[0].fX, args[0].fY); | 222 fPath.moveTo(args[0].fX, args[0].fY); |
223 fPath.lineTo(args[1].fX, args[1].fY); | 223 fPath.lineTo(args[1].fX, args[1].fY); |
224 } | 224 } |
225 break; | 225 break; |
226 default: | 226 default: |
227 SkASSERT(0); | 227 SkASSERT(0); |
228 return; | 228 return; |
229 } | 229 } |
230 if (previousOp == 0) | 230 if (previousOp == 0) |
231 f = c; | 231 f = c; |
232 previousOp = op; | 232 previousOp = op; |
233 } while (data[0] > 0); | 233 } while (data[0] > 0); |
234 } | 234 } |
OLD | NEW |