eri
8ccbe45143
buffer: convert to try_from
...
References: wlroots/wlroots#884
1 year ago
Alexander Orzechowski
1b0694b794
treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical
1 year ago
Simon Ser
fe06e5f49a
Use wl_container_of() instead of casts
...
This slightly improves type safety.
The culprits were found with:
git grep -E '\([a-z0-9_ ]+ \*\)\W?[a-z]'
1 year ago
Simon Ser
7a9f8d8d6b
Use struct initializers instead of memset()
...
This is a bit more type-safe.
2 years ago
Simon Ser
f84f7c7710
wl-drm: use resource interface
...
Instead of hardcoding builtin resource types in
wlr_buffer_from_resource(), use the modular resource interface.
2 years ago
Simon Ser
772066a174
linux-dmabuf-v1: use resource interface
...
Instead of hardcoding builtin resource types in
wlr_buffer_from_resource(), use the modular resource interface.
2 years ago
Simon Ser
6c277e3c39
buffer: drop wlr_shm_client_buffer
...
It's been superseded by wlr_shm.
2 years ago
Simon Ser
93597952aa
buffer: constify wlr_client_buffer_apply_damage()
2 years ago
Alexander Orzechowski
ea40ba4f6a
wlr_scene: Fix texture reuse
...
Add private interface to ignore a buffer that's locking a client_buffer
for damage tracking. This should eventually be replaced by wlr_raster.
2 years ago
Simon Ser
69c47717c2
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.
2 years ago