OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 | 7 |
8 #ifndef SkPathPriv_DEFINED | 8 #ifndef SkPathPriv_DEFINED |
9 #define SkPathPriv_DEFINED | 9 #define SkPathPriv_DEFINED |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 path.fPathRef->addGenIDChangeListener(listener); | 84 path.fPathRef->addGenIDChangeListener(listener); |
85 } | 85 } |
86 | 86 |
87 /** | 87 /** |
88 * This returns true for a rect that begins and ends at the same corner and
has either a move | 88 * This returns true for a rect that begins and ends at the same corner and
has either a move |
89 * followed by four lines or a move followed by 3 lines and a close. None of
the parameters are | 89 * followed by four lines or a move followed by 3 lines and a close. None of
the parameters are |
90 * optional. This does not permit degenerate line or point rectangles. | 90 * optional. This does not permit degenerate line or point rectangles. |
91 */ | 91 */ |
92 static bool IsSimpleClosedRect(const SkPath& path, SkRect* rect, SkPath::Dir
ection* direction, | 92 static bool IsSimpleClosedRect(const SkPath& path, SkRect* rect, SkPath::Dir
ection* direction, |
93 unsigned* start); | 93 unsigned* start); |
| 94 |
| 95 /** |
| 96 * Creates a path from arc params using the semantics of SkCanvas::drawArc.
This function |
| 97 * assumes empty ovals and zero sweeps have already been filtered out. |
| 98 */ |
| 99 static void CreateDrawArcPath(SkPath* path, const SkRect& oval, SkScalar sta
rtAngle, |
| 100 SkScalar sweepAngle, bool useCenter, bool isFi
llNoPathEffect); |
94 }; | 101 }; |
95 | 102 |
96 #endif | 103 #endif |
OLD | NEW |