mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
gl renderer: Add more node types to print_render_node_tree
debugging ++
This commit is contained in:
parent
fb6adaaa62
commit
ad759307f8
@ -105,8 +105,19 @@ print_render_node_tree (GskRenderNode *root, int level)
|
||||
g_print ("%*s Texture %p\n", level * INDENT, " ", gsk_texture_node_get_texture (root));
|
||||
break;
|
||||
|
||||
case GSK_DEBUG_NODE:
|
||||
g_print ("%*s Debug: %s\n", level * INDENT, " ", gsk_debug_node_get_message (root));
|
||||
print_render_node_tree (gsk_debug_node_get_child (root), level + 1);
|
||||
break;
|
||||
|
||||
case GSK_CLIP_NODE:
|
||||
g_print ("%*s Clip (%f, %f, %f, %f):\n", level * INDENT, " ",
|
||||
root->bounds.origin.x, root->bounds.origin.y, root->bounds.size.width, root->bounds.size.height);
|
||||
print_render_node_tree (gsk_clip_node_get_child (root), level + 1);
|
||||
break;
|
||||
|
||||
default:
|
||||
g_print ("UNKNOWN: %u\n", type);
|
||||
g_print ("%*s %s\n", level * INDENT, " ", root->node_class->type_name);
|
||||
}
|
||||
|
||||
#undef INDENT
|
||||
|
Loading…
Reference in New Issue
Block a user