buffer: split into multiple files

wlr_buffer.c is difficult to read because it contains a mixed bag
of unrelated things: base buffer type, buffer implementations,
buffer resource factory, and client buffer.

Split each of these into their own file.
This commit is contained in:
Simon Ser 2022-09-16 18:32:22 +02:00
parent 4ffc97d134
commit 69c47717c2
9 changed files with 594 additions and 566 deletions

View file

@ -27,7 +27,12 @@ wlr_files += files(
'xdg_shell/wlr_xdg_shell.c',
'xdg_shell/wlr_xdg_surface.c',
'xdg_shell/wlr_xdg_toplevel.c',
'wlr_buffer.c',
'buffer/buffer.c',
'buffer/client.c',
'buffer/dmabuf.c',
'buffer/readonly_data.c',
'buffer/resource.c',
'buffer/shm_client.c',
'wlr_compositor.c',
'wlr_cursor.c',
'wlr_damage_ring.c',