diff options
author | caryclark <caryclark@google.com> | 2016-11-04 11:38:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-04 11:38:41 -0700 |
commit | d8db392be9dd1887df04b10b5670991d6b098c17 (patch) | |
tree | e968ba01ec4043801bf6a74f0ff87de1d6f78f07 /include/pathops | |
parent | 8bd45cd98eb0eff1fb074fac9f469fdad5ca51f9 (diff) |
use reversePathTo in place of addPathReverse
Path ops was using addPathReverse, instead of reversePathTo.
The former adds a moveTo always, and the latter requires
that the caller add the moveTo if needed.
Simplify the reversePathTo implementation.
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2481463002
Review-Url: https://codereview.chromium.org/2481463002
Diffstat (limited to 'include/pathops')
-rw-r--r-- | include/pathops/SkPathOps.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pathops/SkPathOps.h b/include/pathops/SkPathOps.h index fa01788394..1e8093f2a8 100644 --- a/include/pathops/SkPathOps.h +++ b/include/pathops/SkPathOps.h @@ -91,6 +91,8 @@ private: SkTArray<SkPath> fPathRefs; SkTDArray<SkPathOp> fOps; + static bool FixWinding(SkPath* path); + static void ReversePath(SkPath* path); void reset(); }; |