Move hit testing information out of WebRender

Store hit testing information in a data structure that sits alongside
the display list in the compositor. This will allow the compositor to
store more information per-node. The data structure also takes care of
de-duplicating information between successive display list entries. In
the future, the data structure can be even more aggressive in producing
smaller side hit testing lists, if necessary.
This commit is contained in:
Martin Robinson 2023-03-13 11:56:38 +01:00
parent d95c371d79
commit 6d4b7e7a22
10 changed files with 225 additions and 107 deletions

View file

@ -1345,8 +1345,12 @@ impl LayoutThread {
self.viewport_size.width.to_f32_px(),
self.viewport_size.height.to_f32_px(),
));
self.webrender_api
.send_display_list(epoch, viewport_size, display_list.wr.finalize());
self.webrender_api.send_display_list(
epoch,
viewport_size,
display_list.compositor_info,
display_list.wr.finalize(),
);
if self.trace_layout {
layout_debug::end_trace(self.generation.get());