From ded5bd083ccd6bbc89c160499323c1832f9c8c6e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 9 Apr 2020 18:25:37 +0200 Subject: [PATCH] Print composition layer in logs --- output.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/output.c b/output.c index d771616..5c4f62f 100644 --- a/output.c +++ b/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++) {