commit | cdaf661408c78fc36058cdc78c84ceaaeeb36ac6 | [log] [tgz] |
---|---|---|
author | Jim Van Verth <jvanverth@google.com> | Tue Jun 05 15:21:13 2018 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jun 05 19:47:29 2018 +0000 |
tree | b8665b9df29ef542a55f2f79a1ea013511a85006 | |
parent | 5e6853ddfd08c9b11351665df42eadab54e0bdae [diff] |
Consolidate ambient and spot code setup. Uses shared code to create a polygon version of the path, as well as computing the centroid and determining convexity. This makes things more consistent and sets up for creating concave ambient shadows. Bug: skia:7971 Change-Id: I3f36a423431361177ad9f53218b3ff0fdaa179e1 Reviewed-on: https://skia-review.googlesource.com/131585 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>