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

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

Issue 1717623002: fix iter to document close correctly (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 SkPath_DEFINED 8 #ifndef SkPath_DEFINED
9 #define SkPath_DEFINED 9 #define SkPath_DEFINED
10 10
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 * Returns 0 for an empty path (no segments). 915 * Returns 0 for an empty path (no segments).
916 */ 916 */
917 uint32_t getSegmentMasks() const { return fPathRef->getSegmentMasks(); } 917 uint32_t getSegmentMasks() const { return fPathRef->getSegmentMasks(); }
918 918
919 enum Verb { 919 enum Verb {
920 kMove_Verb, //!< iter.next returns 1 point 920 kMove_Verb, //!< iter.next returns 1 point
921 kLine_Verb, //!< iter.next returns 2 points 921 kLine_Verb, //!< iter.next returns 2 points
922 kQuad_Verb, //!< iter.next returns 3 points 922 kQuad_Verb, //!< iter.next returns 3 points
923 kConic_Verb, //!< iter.next returns 3 points + iter.conicWeight() 923 kConic_Verb, //!< iter.next returns 3 points + iter.conicWeight()
924 kCubic_Verb, //!< iter.next returns 4 points 924 kCubic_Verb, //!< iter.next returns 4 points
925 kClose_Verb, //!< iter.next returns 1 point (contour's moveTo pt) 925 kClose_Verb, //!< iter.next returns 0 points
926 kDone_Verb, //!< iter.next returns 0 points 926 kDone_Verb, //!< iter.next returns 0 points
927 }; 927 };
928 928
929 /** Iterate through all of the segments (lines, quadratics, cubics) of 929 /** Iterate through all of the segments (lines, quadratics, cubics) of
930 each contours in a path. 930 each contours in a path.
931 931
932 The iterator cleans up the segments along the way, removing degenerate 932 The iterator cleans up the segments along the way, removing degenerate
933 segments and adding close verbs where necessary. When the forceClose 933 segments and adding close verbs where necessary. When the forceClose
934 argument is provided, each contour (as defined by a new starting 934 argument is provided, each contour (as defined by a new starting
935 move command) will be completed with a close verb regardless of the 935 move command) will be completed with a close verb regardless of the
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 1163
1164 friend class SkAutoPathBoundsUpdate; 1164 friend class SkAutoPathBoundsUpdate;
1165 friend class SkAutoDisableOvalCheck; 1165 friend class SkAutoDisableOvalCheck;
1166 friend class SkAutoDisableDirectionCheck; 1166 friend class SkAutoDisableDirectionCheck;
1167 friend class SkBench_AddPathTest; // perf test reversePathTo 1167 friend class SkBench_AddPathTest; // perf test reversePathTo
1168 friend class PathTest_Private; // unit test reversePathTo 1168 friend class PathTest_Private; // unit test reversePathTo
1169 friend class ForceIsRRect_Private; // unit test isRRect 1169 friend class ForceIsRRect_Private; // unit test isRRect
1170 }; 1170 };
1171 1171
1172 #endif 1172 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698