OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 "SkBuffer.h" | 8 #include "SkBuffer.h" |
9 #include "SkCubicClipper.h" | 9 #include "SkCubicClipper.h" |
10 #include "SkErrorInternals.h" | 10 #include "SkErrorInternals.h" |
(...skipping 3076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3087 } | 3087 } |
3088 } while (!done); | 3088 } while (!done); |
3089 return SkToBool(tangents.count()) ^ isInverse; | 3089 return SkToBool(tangents.count()) ^ isInverse; |
3090 } | 3090 } |
3091 | 3091 |
3092 int SkPath::ConvertConicToQuads(const SkPoint& p0, const SkPoint& p1, const SkPo
int& p2, | 3092 int SkPath::ConvertConicToQuads(const SkPoint& p0, const SkPoint& p1, const SkPo
int& p2, |
3093 SkScalar w, SkPoint pts[], int pow2) { | 3093 SkScalar w, SkPoint pts[], int pow2) { |
3094 const SkConic conic(p0, p1, p2, w); | 3094 const SkConic conic(p0, p1, p2, w); |
3095 return conic.chopIntoQuadsPOW2(pts, pow2); | 3095 return conic.chopIntoQuadsPOW2(pts, pow2); |
3096 } | 3096 } |
| 3097 |
| 3098 void SkPath::ConvertQuadToCubic(const SkPoint src[3], SkPoint dst[4]) { |
| 3099 SkConvertQuadToCubic(src, dst); |
| 3100 } |
OLD | NEW |