mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
backend/drm: add libliftoff composition layer
This will be useful for implementing the output layers API.
This commit is contained in:
parent
f7276aaf2f
commit
e45ddda7bc
3 changed files with 16 additions and 9 deletions
|
|
@ -292,6 +292,14 @@ static bool init_libliftoff(struct wlr_drm_backend *drm) {
|
|||
return false;
|
||||
}
|
||||
|
||||
crtc->liftoff_composition_layer = liftoff_layer_create(crtc->liftoff);
|
||||
if (!crtc->liftoff_composition_layer) {
|
||||
wlr_log(WLR_ERROR, "Failed to create liftoff composition layer");
|
||||
return false;
|
||||
}
|
||||
liftoff_output_set_composition_layer(crtc->liftoff,
|
||||
crtc->liftoff_composition_layer);
|
||||
|
||||
if (crtc->primary) {
|
||||
crtc->primary->liftoff_layer = liftoff_layer_create(crtc->liftoff);
|
||||
if (!crtc->primary->liftoff_layer) {
|
||||
|
|
@ -387,6 +395,7 @@ void finish_drm_resources(struct wlr_drm_backend *drm) {
|
|||
free(crtc->cursor);
|
||||
}
|
||||
|
||||
liftoff_layer_destroy(crtc->liftoff_composition_layer);
|
||||
liftoff_output_destroy(crtc->liftoff);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue