OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved. |
3 * 2006 Rob Buis <buis@kde.org> | 3 * 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 4 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
5 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void pointAndNormalAtLength(float length, FloatPoint&, float&); | 99 void pointAndNormalAtLength(float length, FloatPoint&, float&); |
100 | 100 |
101 private: | 101 private: |
102 SkPath m_path; | 102 SkPath m_path; |
103 SkPathMeasure m_pathMeasure; | 103 SkPathMeasure m_pathMeasure; |
104 SkScalar m_accumulatedLength; | 104 SkScalar m_accumulatedLength; |
105 }; | 105 }; |
106 | 106 |
107 void clear(); | 107 void clear(); |
108 bool isEmpty() const; | 108 bool isEmpty() const; |
| 109 bool isClosed() const; |
109 // Specify whether this path is volatile. Temporary paths that are discarded
or | 110 // Specify whether this path is volatile. Temporary paths that are discarded
or |
110 // modified after use should be marked as volatile. This is a hint to the de
vice | 111 // modified after use should be marked as volatile. This is a hint to the de
vice |
111 // to not cache this path. | 112 // to not cache this path. |
112 void setIsVolatile(bool); | 113 void setIsVolatile(bool); |
113 // Gets the current point of the current path, which is conceptually the fin
al point reached by the path so far. | 114 // Gets the current point of the current path, which is conceptually the fin
al point reached by the path so far. |
114 // Note the Path can be empty (isEmpty() == true) and still have a current p
oint. | 115 // Note the Path can be empty (isEmpty() == true) and still have a current p
oint. |
115 bool hasCurrentPoint() const; | 116 bool hasCurrentPoint() const; |
116 FloatPoint currentPoint() const; | 117 FloatPoint currentPoint() const; |
117 | 118 |
118 void setWindRule(const WindRule); | 119 void setWindRule(const WindRule); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 SkPath m_path; | 158 SkPath m_path; |
158 }; | 159 }; |
159 | 160 |
160 #if ENABLE(ASSERT) | 161 #if ENABLE(ASSERT) |
161 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); | 162 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); |
162 #endif | 163 #endif |
163 | 164 |
164 } // namespace blink | 165 } // namespace blink |
165 | 166 |
166 #endif | 167 #endif |
OLD | NEW |