Bug 1675375 Part 4: Perform the polygon hit test in WebRender, and add unit tests...
commit306cb2674deda2a4c982d315c3ccd65cf1ff35e8
authorBrad Werth <bwerth@mozilla.com>
Wed, 14 Apr 2021 17:17:15 +0000 (14 17:17 +0000)
committerBrad Werth <bwerth@mozilla.com>
Wed, 14 Apr 2021 17:17:15 +0000 (14 17:17 +0000)
tree1af39ded1fe74df4f7e01043ad54065e0ca00205
parentade4bd1b00828ebc2f66bdec6f5b29e7118012cf
Bug 1675375 Part 4: Perform the polygon hit test in WebRender, and add unit tests. r=gw

This performs a winding number calculation on the polygon and matches the
result against the fill rule of the supplied polygon.

Differential Revision: https://phabricator.services.mozilla.com/D109946
gfx/wr/webrender/src/clip.rs
gfx/wr/webrender/src/hit_test.rs
gfx/wr/webrender/src/util.rs