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

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

Issue 17432003: SkPath::rewind needs to have same reset as SkPath::reset. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 mutable uint8_t fBoundsIsDirty; 977 mutable uint8_t fBoundsIsDirty;
978 mutable uint8_t fConvexity; 978 mutable uint8_t fConvexity;
979 mutable uint8_t fDirection; 979 mutable uint8_t fDirection;
980 mutable SkBool8 fIsFinite; // only meaningful if bounds are valid 980 mutable SkBool8 fIsFinite; // only meaningful if bounds are valid
981 mutable SkBool8 fIsOval; 981 mutable SkBool8 fIsOval;
982 #ifdef SK_BUILD_FOR_ANDROID 982 #ifdef SK_BUILD_FOR_ANDROID
983 uint32_t fGenerationID; 983 uint32_t fGenerationID;
984 const SkPath* fSourcePath; 984 const SkPath* fSourcePath;
985 #endif 985 #endif
986 986
987 // Assumes the caller has already emptied fPathRef and resets all other
988 // fields to the values they would have when calling the default contructor.
989 void resetFields();
990
987 // called, if dirty, by getBounds() 991 // called, if dirty, by getBounds()
988 void computeBounds() const; 992 void computeBounds() const;
989 993
990 friend class Iter; 994 friend class Iter;
991 995
992 friend class SkPathStroker; 996 friend class SkPathStroker;
993 /* Append the first contour of path, ignoring path's initial point. If no 997 /* Append the first contour of path, ignoring path's initial point. If no
994 moveTo() call has been made for this contour, the first point is 998 moveTo() call has been made for this contour, the first point is
995 automatically set to (0,0). 999 automatically set to (0,0).
996 */ 1000 */
(...skipping 20 matching lines...) Expand all
1017 bool isRectContour(bool allowPartial, int* currVerb, const SkPoint** pts, 1021 bool isRectContour(bool allowPartial, int* currVerb, const SkPoint** pts,
1018 bool* isClosed, Direction* direction) const; 1022 bool* isClosed, Direction* direction) const;
1019 1023
1020 friend class SkAutoPathBoundsUpdate; 1024 friend class SkAutoPathBoundsUpdate;
1021 friend class SkAutoDisableOvalCheck; 1025 friend class SkAutoDisableOvalCheck;
1022 friend class SkAutoDisableDirectionCheck; 1026 friend class SkAutoDisableDirectionCheck;
1023 friend class SkBench_AddPathTest; // perf test pathTo/reversePathTo 1027 friend class SkBench_AddPathTest; // perf test pathTo/reversePathTo
1024 }; 1028 };
1025 1029
1026 #endif 1030 #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