use reversePathTo in place of addPathReverse
authorcaryclark <caryclark@google.com>
Mon, 7 Nov 2016 13:09:28 +0000 (05:09 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 7 Nov 2016 13:09:28 +0000 (05:09 -0800)
commit51c5678f258736736c4a5d48d4e82c73be225428
treefd9c8b36f3e4d384e881e608835b107f4613d281
parentad512797c9405f78b080a1d24cd98f465b9879dd
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

Committed: https://skia.googlesource.com/skia/+/d8db392be9dd1887df04b10b5670991d6b098c17
Review-Url: https://codereview.chromium.org/2481463002
include/core/SkPath.h
include/pathops/SkPathOps.h
src/core/SkPath.cpp
src/pathops/SkOpBuilder.cpp
src/pathops/SkPathWriter.cpp