[gtk+/wip/matthiasc/shadertoy: 88/91] inspector: learn about new nodes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/shadertoy: 88/91] inspector: learn about new nodes
- Date: Tue, 3 Oct 2017 01:32:01 +0000 (UTC)
commit 7e609055c892eddc74f6ab0bfcf57120eb5d1058
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 23 20:49:45 2017 -0400
inspector: learn about new nodes
Whenever we add a new kind of render node, the inspector needs
to be updated, or it crashes. Somewhat annoying.
gtk/inspector/gtktreemodelrendernode.c | 7 +++++++
gtk/inspector/recorder.c | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/gtktreemodelrendernode.c b/gtk/inspector/gtktreemodelrendernode.c
index bfb5a9c..f0a5e78 100644
--- a/gtk/inspector/gtktreemodelrendernode.c
+++ b/gtk/inspector/gtktreemodelrendernode.c
@@ -534,6 +534,13 @@ append_node (GtkTreeModelRenderNode *nodemodel,
/* no children */
break;
+ case GSK_PIXEL_SHADER_NODE:
+ if (gsk_pixel_shader_node_get_child1 (node))
+ append_node (nodemodel, gsk_pixel_shader_node_get_child1 (node), priv->nodes->len - 1);
+ if (gsk_pixel_shader_node_get_child2 (node))
+ append_node (nodemodel, gsk_pixel_shader_node_get_child2 (node), priv->nodes->len - 1);
+ break;
+
case GSK_TRANSFORM_NODE:
append_node (nodemodel, gsk_transform_node_get_child (node), priv->nodes->len - 1);
break;
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 3c09608..670e619 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -189,6 +189,8 @@ node_type_name (GskRenderNodeType type)
return "Text";
case GSK_BLUR_NODE:
return "Blur";
+ case GSK_PIXEL_SHADER_NODE:
+ return "Pixel Shader";
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]