[gtk+/wip/ebassi/gsk-renderer: 59/135] gtk: Name GSK render nodes



commit 020e4e5bfa097542346e37127d96c1e4a1b126c9
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jul 27 09:39:55 2016 +0100

    gtk: Name GSK render nodes
    
    For debugging purposes it's helpful to name the nodes.

 gtk/gtkwidget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 574c8c6..78ac097 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -16085,6 +16085,7 @@ gtk_widget_get_render_node (GtkWidget   *widget,
       cairo_t *cr;
 
       tmp = gsk_render_node_new ();
+      gsk_render_node_set_name (tmp, "Draw Fallback");
       gsk_render_node_set_bounds (tmp, &bounds);
       gsk_render_node_set_transform (tmp, &m);
       cr = gsk_render_node_get_draw_context (tmp);
@@ -16107,6 +16108,7 @@ gtk_widget_get_render_node (GtkWidget   *widget,
           cairo_t *cr;
 
           tmp = gsk_render_node_new ();
+          gsk_render_node_set_name (tmp, "Draw Signal Handler");
           gsk_render_node_set_bounds (tmp, &bounds);
           gsk_render_node_set_transform (tmp, &m);
           cr = gsk_render_node_get_draw_context (tmp);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]