Commit 433f4e77 authored by Marius Vlad's avatar Marius Vlad

compositor: Fix scene-graph debug scope missing views based on sub-surfaces

Signed-off-by: Marius Vlad's avatarMarius Vlad <>
parent d4c7bc58
......@@ -6645,6 +6645,33 @@ debug_scene_view_print(FILE *fp, struct weston_view *view, int view_idx)
debug_scene_view_print_buffer(fp, view);
static void
debug_scene_view_print_tree(struct weston_view *view,
FILE *fp, int view_idx)
struct weston_subsurface *sub;
struct weston_view *ev;
* print the view first, then we recursively go on printing
* sub-surfaces. We bail out once no more sub-surfaces are available.
debug_scene_view_print(fp, view, view_idx++);
/* no more sub-surfaces */
if (wl_list_empty(&view->surface->subsurface_list))
wl_list_for_each(sub, &view->surface->subsurface_list, parent_link) {
wl_list_for_each(ev, &sub->surface->views, surface_link) {
/* do not print again the parent view */
if (view == ev)
debug_scene_view_print_tree(ev, fp, view_idx);
* Output information on how libweston is currently composing the scene
* graph.
......@@ -6715,7 +6742,7 @@ weston_compositor_print_scene_graph(struct weston_compositor *ec)
wl_list_for_each(view, &layer->,
debug_scene_view_print(fp, view, view_idx++);
debug_scene_view_print_tree(view, fp, view_idx);
if (wl_list_empty(&layer->
fprintf(fp, "\t[no views]\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment