Bug 1706561 Part 5: Intern polygon data for image masks, and retrieve for hit tests...
commitee8a46244a6369b7ace0e4ccbc8b17dee0c40655
authorBrad Werth <bwerth@mozilla.com>
Thu, 20 May 2021 17:26:23 +0000 (20 17:26 +0000)
committerBrad Werth <bwerth@mozilla.com>
Thu, 20 May 2021 17:26:23 +0000 (20 17:26 +0000)
tree363a826d128bc0c73c801bd25067098d701b58a9
parente92370307c521cc5306c54dfba4e6c475a2fa2e6
Bug 1706561 Part 5: Intern polygon data for image masks, and retrieve for hit tests. r=gw

This moves the polygon data out of the ClipItemKind and ClipItemKeyKind enums,
which reduces bloat, which improves access times for scenes with lots of
clips -- even if they don't use image mask clips. The SceneBuilder interns
polygons when they arrive alongside image mask clips, and the HitTestingScene
retrieves them when it's time to build the hit test nodes.

Differential Revision: https://phabricator.services.mozilla.com/D114558
gfx/webrender_bindings/webrender_ffi.h
gfx/wr/webrender/src/clip.rs
gfx/wr/webrender/src/hit_test.rs
gfx/wr/webrender/src/intern.rs
gfx/wr/webrender/src/picture.rs
gfx/wr/webrender/src/render_backend.rs
gfx/wr/webrender/src/scene_builder_thread.rs
gfx/wr/webrender/src/scene_building.rs