WIP: Bug 1675375 Part 4: Perform the polygon hit test in WebRender, and add unit...
commit14ee16ce8caf2d5b3ecbeea8092cd15562c91d46
authorBrad Werth <bwerth@mozilla.com>
Mon, 12 Apr 2021 18:30:54 +0000 (12 18:30 +0000)
committerBrad Werth <bwerth@mozilla.com>
Mon, 12 Apr 2021 18:30:54 +0000 (12 18:30 +0000)
treeddee0b694ae6f7c7aaff4cc0495658044b31f794
parentbcc5964d99b0fd449a2a6783e07e94419eeac411
WIP: 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