OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
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 #ifndef PathOpsTestCommon_DEFINED | 7 #ifndef PathOpsTestCommon_DEFINED |
8 #define PathOpsTestCommon_DEFINED | 8 #define PathOpsTestCommon_DEFINED |
9 | 9 |
10 #include "SkPathOpsQuad.h" | 10 #include "SkPathOpsQuad.h" |
11 #include "SkTArray.h" | 11 #include "SkTArray.h" |
12 | 12 |
13 struct SkPathOpsBounds; | 13 struct SkPathOpsBounds; |
14 | 14 |
| 15 void CubicPathToQuads(const SkPath& cubicPath, SkPath* quadPath); |
| 16 void CubicPathToSimple(const SkPath& cubicPath, SkPath* simplePath); |
15 void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, tru
e>& quads); | 17 void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, tru
e>& quads); |
16 bool ValidBounds(const SkPathOpsBounds&); | 18 bool ValidBounds(const SkPathOpsBounds&); |
17 bool ValidCubic(const SkDCubic& cubic); | 19 bool ValidCubic(const SkDCubic& cubic); |
18 bool ValidLine(const SkDLine& line); | 20 bool ValidLine(const SkDLine& line); |
19 bool ValidPoint(const SkDPoint& pt); | 21 bool ValidPoint(const SkDPoint& pt); |
20 bool ValidPoints(const SkPoint* pts, int count); | 22 bool ValidPoints(const SkPoint* pts, int count); |
21 bool ValidQuad(const SkDQuad& quad); | 23 bool ValidQuad(const SkDQuad& quad); |
22 bool ValidTriangle(const SkDTriangle& triangle); | 24 bool ValidTriangle(const SkDTriangle& triangle); |
23 bool ValidVector(const SkDVector& v); | 25 bool ValidVector(const SkDVector& v); |
24 | 26 |
25 #endif | 27 #endif |
OLD | NEW |