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 #ifndef SkPathMeasure_DEFINED | 8 #ifndef SkPathMeasure_DEFINED |
9 #define SkPathMeasure_DEFINED | 9 #define SkPathMeasure_DEFINED |
10 | 10 |
| 11 #include "../private/SkTDArray.h" |
11 #include "SkPath.h" | 12 #include "SkPath.h" |
12 #include "SkTDArray.h" | |
13 | 13 |
14 struct SkConic; | 14 struct SkConic; |
15 | 15 |
16 class SK_API SkPathMeasure : SkNoncopyable { | 16 class SK_API SkPathMeasure : SkNoncopyable { |
17 public: | 17 public: |
18 SkPathMeasure(); | 18 SkPathMeasure(); |
19 /** Initialize the pathmeasure with the specified path. The path must remain
valid | 19 /** Initialize the pathmeasure with the specified path. The path must remain
valid |
20 for the lifetime of the measure object, or until setPath() is called wit
h | 20 for the lifetime of the measure object, or until setPath() is called wit
h |
21 a different path (or null), since the measure object keeps a pointer to
the | 21 a different path (or null), since the measure object keeps a pointer to
the |
22 path object (does not copy its data). | 22 path object (does not copy its data). |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 SkScalar compute_cubic_segs(const SkPoint pts[3], SkScalar distance, | 113 SkScalar compute_cubic_segs(const SkPoint pts[3], SkScalar distance, |
114 int mint, int maxt, int ptIndex); | 114 int mint, int maxt, int ptIndex); |
115 const Segment* distanceToSegment(SkScalar distance, SkScalar* t); | 115 const Segment* distanceToSegment(SkScalar distance, SkScalar* t); |
116 bool quad_too_curvy(const SkPoint pts[3]); | 116 bool quad_too_curvy(const SkPoint pts[3]); |
117 bool conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt,const SkP
oint& lastPt); | 117 bool conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt,const SkP
oint& lastPt); |
118 bool cheap_dist_exceeds_limit(const SkPoint& pt, SkScalar x, SkScalar y); | 118 bool cheap_dist_exceeds_limit(const SkPoint& pt, SkScalar x, SkScalar y); |
119 bool cubic_too_curvy(const SkPoint pts[4]); | 119 bool cubic_too_curvy(const SkPoint pts[4]); |
120 }; | 120 }; |
121 | 121 |
122 #endif | 122 #endif |
OLD | NEW |