summaryrefslogtreecommitdiff
path: root/gtk/inspector
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-31 01:13:19 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-31 02:49:47 +0100
commit7540702cf0196cf4890de87f4225165a5f2f53f2 (patch)
tree75b4d503a5fa153810416d63b568970a92a97e97 /gtk/inspector
parent91741f6b634cc1317beefa062ab7b5547735fc87 (diff)
downloadgtk+-7540702cf0196cf4890de87f4225165a5f2f53f2.tar.gz
gsk: Add GskColorMatrixNode
This node essentially implements the feColorMatrix SVG filter. I got the idea yesterday after looking at the opacity implementation. It can be used for opacity (not sure if we want to) and to implement a bunch of the CSS filters.
Diffstat (limited to 'gtk/inspector')
-rw-r--r--gtk/inspector/gtktreemodelrendernode.c4
-rw-r--r--gtk/inspector/recorder.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gtk/inspector/gtktreemodelrendernode.c b/gtk/inspector/gtktreemodelrendernode.c
index 1a37680fca..ddf6d21e4e 100644
--- a/gtk/inspector/gtktreemodelrendernode.c
+++ b/gtk/inspector/gtktreemodelrendernode.c
@@ -541,6 +541,10 @@ append_node (GtkTreeModelRenderNode *nodemodel,
append_node (nodemodel, gsk_opacity_node_get_child (node), priv->nodes->len - 1);
break;
+ case GSK_COLOR_MATRIX_NODE:
+ append_node (nodemodel, gsk_color_matrix_node_get_child (node), priv->nodes->len - 1);
+ break;
+
case GSK_CLIP_NODE:
append_node (nodemodel, gsk_clip_node_get_child (node), priv->nodes->len - 1);
break;
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 25f98a587e..f6b1fc6f79 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -162,6 +162,8 @@ node_type_name (GskRenderNodeType type)
return "Transform";
case GSK_OPACITY_NODE:
return "Opacity";
+ case GSK_COLOR_MATRIX_NODE:
+ return "Color Matrix";
case GSK_CLIP_NODE:
return "Clip";
case GSK_ROUNDED_CLIP_NODE: