mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/drm: introduce wlr_drm_fb
This is a type which manages gbm_surfaces and imported dmabufs in the same place, and makes the lifetime management between the two shared. It should lead to easier to understand code, and fewer special cases. This also contains a fair bit of refactoring to start using this new type. Co-authored-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
fa5d709fc3
commit
8da9d9679e
8 changed files with 397 additions and 285 deletions
|
|
@ -14,8 +14,7 @@ void parse_edid(struct wlr_output *restrict output, size_t len,
|
|||
// Returns the string representation of a DRM output type
|
||||
const char *conn_get_name(uint32_t type_id);
|
||||
// Returns the DRM framebuffer id for a gbm_bo
|
||||
uint32_t get_fb_for_bo(struct gbm_bo *bo, uint32_t drm_format,
|
||||
bool with_modifiers);
|
||||
uint32_t get_fb_for_bo(struct gbm_bo *bo, bool with_modifiers);
|
||||
|
||||
// Part of match_obj
|
||||
enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue