Expand GrStyle's interface.
authorbsalomon <bsalomon@google.com>
Wed, 4 May 2016 15:27:41 +0000 (08:27 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 4 May 2016 15:27:42 +0000 (08:27 -0700)
commitfb08327e592a1dd19a0c3107243ccd01f6b7f848
tree91f622773ed07e4d233ab9d66f0bad7cabbf1bdf
parent419ca64f0f800dc098369b5aa5a604acd017b240
Expand GrStyle's interface.

Adds some basic getters on GrStyle as well as static const instances for fill and hairline.

Adds the ability to apply a GrStyle to a SkPath to produce an output SkPath.

Moves style key functions from GrShape to GrStyle.

Also fixes some issues with SkPath creation when applying style to GrShapes.

Adds tests that GrShape produces the correct SkPath when its GrStyle is applied.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1951613002

Review-Url: https://codereview.chromium.org/1951613002
src/gpu/GrShape.cpp
src/gpu/GrShape.h
src/gpu/GrStyle.cpp
src/gpu/GrStyle.h
tests/GrShapeTest.cpp