Add SkPath::isLastContourClosed()
authorfs <fs@opera.com>
Wed, 20 Jan 2016 17:51:07 +0000 (09:51 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 20 Jan 2016 17:51:08 +0000 (09:51 -0800)
commitb1475b0d41efc580207183a4e25d14e920b57360
treee6902299103f4f324c7cf1aafe95c8a1a9d30c81
parent3425cbaee16aface56eafd3e97aa60071a3fec85
Add SkPath::isLastContourClosed()

Adds a simple method for checking if the last command/verb in the
current contour is a 'close'.

This will simplify determining "closedness" for blink::Path, and aid
in the implementation of algorithms such as:

https://drafts.fxtf.org/motion-1/#motion-processing (second item in list)

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1601103006

Review URL: https://codereview.chromium.org/1601103006
include/core/SkPath.h
src/core/SkPath.cpp
tests/PathTest.cpp