mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
Print composition layer in logs
This commit is contained in:
parent
049077aee5
commit
ded5bd083c
1 changed files with 5 additions and 1 deletions
6
output.c
6
output.c
|
@ -58,6 +58,7 @@ void liftoff_output_set_composition_layer(struct liftoff_output *output,
|
|||
void output_log_layers(struct liftoff_output *output) {
|
||||
struct liftoff_layer *layer;
|
||||
size_t i;
|
||||
bool is_composition_layer;
|
||||
|
||||
if (!log_has(LIFTOFF_DEBUG)) {
|
||||
return;
|
||||
|
@ -72,7 +73,10 @@ void output_log_layers(struct liftoff_output *output) {
|
|||
if (!layer_has_fb(layer)) {
|
||||
continue;
|
||||
}
|
||||
liftoff_log(LIFTOFF_DEBUG, " Layer %p:", (void *)layer);
|
||||
is_composition_layer = output->composition_layer == layer;
|
||||
liftoff_log(LIFTOFF_DEBUG, " Layer %p%s:",
|
||||
(void *)layer, is_composition_layer ?
|
||||
" (composition layer)" : "");
|
||||
}
|
||||
|
||||
for (i = 0; i < layer->props_len; i++) {
|
||||
|
|
Loading…
Reference in a new issue