wlr_scene: Parse out WLR_SCENE_DEBUG_DAMAGE

This commit is contained in:
Alexander Orzechowski 2022-05-20 18:28:08 -04:00
parent 4ac19e9f9c
commit 17f5414b1a
3 changed files with 31 additions and 0 deletions

View file

@ -71,6 +71,12 @@ struct wlr_scene_node {
struct wlr_addon_set addons;
};
enum wlr_scene_debug_damage_option {
WLR_SCENE_DEBUG_DAMAGE_NONE,
WLR_SCENE_DEBUG_DAMAGE_RERENDER,
WLR_SCENE_DEBUG_DAMAGE_HIGHLIGHT
};
/** The root scene-graph node. */
struct wlr_scene {
struct wlr_scene_node node;
@ -83,6 +89,8 @@ struct wlr_scene {
// private state
struct wl_listener presentation_destroy;
enum wlr_scene_debug_damage_option debug_damage_option;
};
/** A sub-tree in the scene-graph. */