mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
Omit logging inactive layer information
It is only of interest to log the currently active layers when debugging. A layer is inactive when it does not have an fb and composition is not forced. Check layers for that and otherwise skip them. Also tell if composition is actually forced on the layer.
This commit is contained in:
parent
71bd11377a
commit
52cd24a904
1 changed files with 10 additions and 1 deletions
9
output.c
9
output.c
|
@ -65,7 +65,16 @@ void output_log_layers(struct liftoff_output *output) {
|
|||
|
||||
liftoff_log(LIFTOFF_DEBUG, "Layers on CRTC %"PRIu32":", output->crtc_id);
|
||||
liftoff_list_for_each(layer, &output->layers, link) {
|
||||
if (layer->force_composition) {
|
||||
liftoff_log(LIFTOFF_DEBUG, " Layer %p "
|
||||
"(forced composition):", (void *)layer);
|
||||
} else {
|
||||
if (!layer_has_fb(layer)) {
|
||||
continue;
|
||||
}
|
||||
liftoff_log(LIFTOFF_DEBUG, " Layer %p:", (void *)layer);
|
||||
}
|
||||
|
||||
for (i = 0; i < layer->props_len; i++) {
|
||||
char *name = layer->props[i].name;
|
||||
uint64_t value = layer->props[i].value;
|
||||
|
|
Loading…
Reference in a new issue