aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2017-08-29 17:36:51 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-30 11:06:02 +0000
commit73fa972d0bd9de7cb801323495b5d1fabd31b24f (patch)
tree3a376a200b59bfd5c434eba345cf8e978a8f8ba6 /include/core/SkPath.h
parent1a763632d21636504d78910f7dea0aa708c6365f (diff)
work on path
Work on SkPath.h documentation; fixed self-consistency bugs identified by bookmaker. Fixed a couple of minor typos in SkPath.h itself. Also brought SkPaint and SkCanvas docs up to date. TBR=reed@google.com Docs-Preview: https://skia.org/?cl=39040 Bug: skia: 6898 Change-Id: Id89d4e2fa7fb6ee2e3cbec7ea762e06308b67d8b Reviewed-on: https://skia-review.googlesource.com/39040 Commit-Queue: Cary Clark <caryclark@skia.org> Reviewed-by: Cary Clark <caryclark@google.com> Reviewed-by: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r--include/core/SkPath.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index c3031660a6..fb25b03426 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -83,7 +83,7 @@ public:
kInverseWinding_FillType,
/** Same as EvenOdd, but draws outside of the path, rather than inside
*/
- kInverseEvenOdd_FillType
+ kInverseEvenOdd_FillType,
};
/** Return the path's fill type. This is used to define how "inside" is
@@ -116,7 +116,7 @@ public:
enum Convexity {
kUnknown_Convexity,
kConvex_Convexity,
- kConcave_Convexity
+ kConcave_Convexity,
};
/**
@@ -848,7 +848,7 @@ public:
Instead, the start of source path will be extended by a straight
line to the end point of the destination path.
*/
- kExtend_AddPathMode
+ kExtend_AddPathMode,
};
/** Add a copy of src to the path, offset by (dx,dy)
@@ -973,9 +973,9 @@ public:
class SK_API Iter {
public:
Iter();
- Iter(const SkPath&, bool forceClose);
+ Iter(const SkPath& path, bool forceClose);
- void setPath(const SkPath&, bool forceClose);
+ void setPath(const SkPath& path, bool forceClose);
/** Return the next verb in this iteration of the path. When all
segments have been visited, return kDone_Verb.
@@ -989,8 +989,8 @@ public:
doConsumeDegenerates is false, exact has no effect.
@return The verb for the current segment
*/
- Verb next(SkPoint pts[4], bool doConsumeDegerates = true, bool exact = false) {
- if (doConsumeDegerates) {
+ Verb next(SkPoint pts[4], bool doConsumeDegenerates = true, bool exact = false) {
+ if (doConsumeDegenerates) {
this->consumeDegenerateSegments(exact);
}
return this->doNext(pts);