[gtk] gl renderer: Add debug code for color nodes



commit 022d19a4c6344ac381dc68ca9375835cceb039a9
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]