[gtk+/wip/ebassi/gsk-renderer: 124/194] gtk: Name GSK render nodes



commit 68bf3488a749b3365159bf65c70a335858d6c5f5
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 26f004c..b3942c7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -17487,6 +17487,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);
@@ -17509,6 +17510,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]