Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: include/core/SkPath.h

Issue 22471002: Restore SkPath(const SkPath&) to copy the generation ID on Android. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: uppercase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | src/core/SkPath.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPath_DEFINED 10 #ifndef SkPath_DEFINED
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 * 160 *
161 * @return true if this path is an oval. 161 * @return true if this path is an oval.
162 * Tracking whether a path is an oval is considered an 162 * Tracking whether a path is an oval is considered an
163 * optimization for performance and so some paths that are in 163 * optimization for performance and so some paths that are in
164 * fact ovals can report false. 164 * fact ovals can report false.
165 */ 165 */
166 bool isOval(SkRect* rect) const; 166 bool isOval(SkRect* rect) const;
167 167
168 /** Clear any lines and curves from the path, making it empty. This frees up 168 /** Clear any lines and curves from the path, making it empty. This frees up
169 internal storage associated with those segments. 169 internal storage associated with those segments.
170 This does NOT change the fill-type setting nor isConvex
171 */ 170 */
172 void reset(); 171 void reset();
173 172
174 /** Similar to reset(), in that all lines and curves are removed from the 173 /** Similar to reset(), in that all lines and curves are removed from the
175 path. However, any internal storage for those lines/curves is retained, 174 path. However, any internal storage for those lines/curves is retained,
176 making reuse of the path potentially faster. 175 making reuse of the path potentially faster.
177 This does NOT change the fill-type setting nor isConvex
178 */ 176 */
179 void rewind(); 177 void rewind();
180 178
181 /** Returns true if the path is empty (contains no lines or curves) 179 /** Returns true if the path is empty (contains no lines or curves)
182 180
183 @return true if the path is empty (contains no lines or curves) 181 @return true if the path is empty (contains no lines or curves)
184 */ 182 */
185 bool isEmpty() const; 183 bool isEmpty() const;
186 184
187 /** 185 /**
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 bool isRectContour(bool allowPartial, int* currVerb, const SkPoint** pts, 1001 bool isRectContour(bool allowPartial, int* currVerb, const SkPoint** pts,
1004 bool* isClosed, Direction* direction) const; 1002 bool* isClosed, Direction* direction) const;
1005 1003
1006 friend class SkAutoPathBoundsUpdate; 1004 friend class SkAutoPathBoundsUpdate;
1007 friend class SkAutoDisableOvalCheck; 1005 friend class SkAutoDisableOvalCheck;
1008 friend class SkAutoDisableDirectionCheck; 1006 friend class SkAutoDisableDirectionCheck;
1009 friend class SkBench_AddPathTest; // perf test pathTo/reversePathTo 1007 friend class SkBench_AddPathTest; // perf test pathTo/reversePathTo
1010 }; 1008 };
1011 1009
1012 #endif 1010 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | src/core/SkPath.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698