backend/x11: re-use pixmaps

Instead of re-importing a buffer each time we submit a frame, re-use the
pixmaps if possible.
This commit is contained in:
Simon Ser 2020-12-12 13:12:06 +01:00
parent defcd9b025
commit d6dbdd97e9
2 changed files with 35 additions and 10 deletions

View file

@ -115,6 +115,7 @@ struct wlr_x11_buffer {
struct wlr_buffer *buffer;
xcb_pixmap_t pixmap;
struct wl_list link; // wlr_x11_output::buffers
struct wl_listener buffer_destroy;
};
struct wlr_x11_format {