Add svg path arcto
authorcaryclark <caryclark@google.com>
Sat, 23 Jan 2016 13:07:04 +0000 (05:07 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 23 Jan 2016 13:07:04 +0000 (05:07 -0800)
commit55d49053d1b6db42e013eb3409ffcfc7e235c685
treec424605b65aceb748643ecb9e6b66193f362d54b
parentb714fb0199e8727ef2b6cddbee7eba6046f01554
Add svg path arcto

The arcto() used by SVG in Chrome and Android is ported here, using conics
instead of cubics. The logic is a direct transposition of the WebKit code.

The attached GM includes SVG that draws the same as Skia.

R=reed@google.com
BUG=skia:3959
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1613303002

Review URL: https://codereview.chromium.org/1613303002
gm/arcto.cpp [new file with mode: 0644]
include/core/SkPath.h
src/core/SkPath.cpp
src/utils/SkParsePath.cpp