Classify spot shadows for general shapes
authorJim Van Verth <jvanverth@google.com>
Thu, 11 May 2017 21:05:28 +0000 (17:05 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 11 May 2017 21:38:51 +0000 (21:38 +0000)
commita783c3623d3cf8b0d2106f055ae4a21d4f8d23d8
tree73a2a9da23cfc534140b76d55df3ff07818dcbae
parentcd9af1bfa8aa0efafabe59da5e7cda0fc9e7eb1f
Classify spot shadows for general shapes

Add some simple checks so we can tell whether a shadow's umbra is
completely covered by the occluder, partially covered, or less than
halfway covered.

Change-Id: I092281c4933bd0380946eb0fdd458ce04b0d713c
Reviewed-on: https://skia-review.googlesource.com/16603
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
src/utils/SkShadowUtils.cpp