wlr_scene: Hook up HIGHLIGHT logic

This will display red translucent rectangles on the screen regions that
have been damaged. These rectangles will fade out over the span of 250
msecs. If the area is damaged again while the region is fading out,
the timer is reset.

Let's also disable direct scan out when this option is enabled, or else
we won't be able to render the highlight damage regions.
This commit is contained in:
Alexander Orzechowski 2022-05-23 15:58:49 -04:00
parent b6fc882782
commit 41124592dd
2 changed files with 102 additions and 1 deletions

View file

@ -91,6 +91,7 @@ struct wlr_scene {
struct wl_listener presentation_destroy;
enum wlr_scene_debug_damage_option debug_damage_option;
struct wl_list damage_highlight_regions;
};
/** A sub-tree in the scene-graph. */