mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
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:
parent
defcd9b025
commit
d6dbdd97e9
2 changed files with 35 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue