output-damage: limit the number of damaged rectangles

This commit is contained in:
emersion 2018-05-05 14:28:55 +01:00
parent a3fd284876
commit 5087199d5d
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 10 additions and 0 deletions

View file

@ -23,6 +23,7 @@
*/
struct wlr_output_damage {
struct wlr_output *output;
int max_rects; // max number of damaged rectangles
pixman_region32_t current; // in output-local coordinates