aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
authorGravatar schenney@chromium.org <schenney@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-21 20:43:13 +0000
committerGravatar schenney@chromium.org <schenney@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-21 20:43:13 +0000
commitb0af6dad94f3c51ea0d5d6426a9509354338c6b2 (patch)
tree72e0ae93fc61c6e6269c44bcbbb2a60b91b10eb4 /include/core/SkPath.h
parent21e0bc2045395063ae449b3ed691554468f152fd (diff)
Protecting changes to the SkPath iteration with an ifdef for Chromium.
Something is broken, and this will protect us while we sort it out. Unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@2922 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r--include/core/SkPath.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index f0fd5e93cd..16cc1f46d4 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -38,7 +38,7 @@ public:
~SkPath();
SkPath& operator=(const SkPath&);
-
+
friend bool operator==(const SkPath&, const SkPath&);
friend bool operator!=(const SkPath& a, const SkPath& b) {
return !(a == b);
@@ -70,7 +70,7 @@ public:
/** Set the path's fill type. This is used to define how "inside" is
computed. The default value is kWinding_FillType.
-
+
@param ft The new fill type for this path
*/
void setFillType(FillType ft) {
@@ -633,7 +633,7 @@ public:
/** Return the next verb in this iteration of the path. When all
segments have been visited, return kDone_Verb.
-
+
@param pts The points representing the current verb and/or segment
@return The verb for the current segment
*/
@@ -643,12 +643,12 @@ public:
line was the result of a close() command (i.e. the end point is the
initial moveto for this contour). If next() returned a different
verb, this returns an undefined value.
-
+
@return If the last call to next() returned kLine_Verb, return true
if it was the result of an explicit close command.
*/
bool isCloseLine() const { return SkToBool(fCloseLine); }
-
+
/** Returns true if the current contour is closed (has a kClose_Verb)
@return true if the current contour is closed (has a kClose_Verb)
*/
@@ -663,7 +663,7 @@ public:
SkBool8 fForceClose;
SkBool8 fNeedClose;
SkBool8 fCloseLine;
- uint8_t fSegmentState;
+ SkBool8 fSegmentState;
bool cons_moveTo(SkPoint pts[1]);
Verb autoClose(SkPoint pts[2]);
@@ -718,4 +718,3 @@ private:
};
#endif
-