mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
output: add damage tracking via buffer age
This commit is contained in:
parent
78c13ead16
commit
0365b587f0
21 changed files with 163 additions and 81 deletions
|
|
@ -5,6 +5,8 @@
|
|||
#include <pixman.h>
|
||||
#include <wayland-server.h>
|
||||
|
||||
#define ROOTS_OUTPUT_PREVIOUS_DAMAGE_LEN 2
|
||||
|
||||
struct roots_desktop;
|
||||
|
||||
struct roots_output {
|
||||
|
|
@ -15,9 +17,12 @@ struct roots_output {
|
|||
struct roots_view *fullscreen_view;
|
||||
|
||||
struct timespec last_frame;
|
||||
pixman_region32_t damage, previous_damage;
|
||||
pixman_region32_t damage;
|
||||
bool frame_pending;
|
||||
|
||||
pixman_region32_t previous_damage[ROOTS_OUTPUT_PREVIOUS_DAMAGE_LEN];
|
||||
size_t previous_damage_idx;
|
||||
|
||||
struct wl_listener frame;
|
||||
struct wl_listener mode;
|
||||
struct wl_listener needs_swap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue