Skip to content
Snippets Groups Projects

wlr_damage_ring: Add wlr_damage_ring_contains_xxx functions

Closed YaoBing Xiao requested to merge (removed):damage into master
  • Added wlr_damage_ring_contains_region to check if a pixman region is fully contained within the current damage tracked by the ring.
  • Added wlr_damage_ring_contains_box to verify whether a wlr_box is fully contained within the current damage.

These functions help determine whether specific areas are already covered by the damage ring.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • I'm having trouble understanding why these functions would be useful. They inherently make no sense because the damage will be different depending on which buffer is chosen from the swapchain.

    Why not just call wlr_damage_ring_rotate_buffer() and check if things are contained depending on the returned region?

  • closed

Please register or sign in to reply
Loading