| 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 "SkErrorInternals.h" | 9 #include "SkErrorInternals.h" |
| 10 #include "SkGeometry.h" | 10 #include "SkGeometry.h" |
| (...skipping 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2830 switch (this->getFillType()) { | 2830 switch (this->getFillType()) { |
| 2831 case SkPath::kEvenOdd_FillType: | 2831 case SkPath::kEvenOdd_FillType: |
| 2832 case SkPath::kInverseEvenOdd_FillType: | 2832 case SkPath::kInverseEvenOdd_FillType: |
| 2833 w &= 1; | 2833 w &= 1; |
| 2834 break; | 2834 break; |
| 2835 default: | 2835 default: |
| 2836 break; | 2836 break; |
| 2837 } | 2837 } |
| 2838 return SkToBool(w); | 2838 return SkToBool(w); |
| 2839 } | 2839 } |
| 2840 |
| 2841 int SkPath::ConvertConicToQuads(const SkPoint& p0, const SkPoint& p1, const SkPo
int& p2, |
| 2842 SkScalar w, SkPoint pts[], int pow2) { |
| 2843 const SkConic conic(p0, p1, p2, w); |
| 2844 return conic.chopIntoQuadsPOW2(pts, pow2); |
| 2845 } |
| OLD | NEW |