[gtk/wip/baedert/gl-rework: 116/127] gl renderer: Add debug code for color nodes



commit 3ce4f4faab3d4481225974b9fa6910eee7af1c32
Author: Timm Bäder <mail baedert org>
Date:   Fri Dec 20 12:30:39 2019 +0100

    gl renderer: Add debug code for color nodes

 gsk/gl/gskglrenderer.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 2e342785a1..14efd2b517 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -125,6 +125,10 @@ print_render_node_tree (GskRenderNode *root, int level)
         g_print ("%*s Text\n", level * INDENT, " ");
         break;
 
+      case GSK_COLOR_NODE:
+        g_print ("%*s Color %s\n", level * INDENT, " ", gdk_rgba_to_string (gsk_color_node_peek_color 
(root)));
+        break;
+
       case GSK_SHADOW_NODE:
         g_print ("%*s Shadow\n", level * INDENT, " ");
         print_render_node_tree (gsk_shadow_node_get_child (root), level + 1);


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