diff options
author | Alexander Larsson <alexl@redhat.com> | 2019-03-28 16:03:42 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2019-03-29 14:30:13 +0100 |
commit | 4dfe2e6e2f4badbaa79158fd318c31890dcd20be (patch) | |
tree | aa55e812ed38bb0b71d3783f472d64c015bb66c2 /gdk/broadway/broadway-protocol.h | |
parent | 90c5a5ff6bbdcbd294119f3e120d64c7522cf21e (diff) | |
download | gtk+-4dfe2e6e2f4badbaa79158fd318c31890dcd20be.tar.gz |
broadway: Initial restructuring of node tree diffing
This goes back to a very naive diff, but that reuses nodes from
previous frames using the node id. This will be a bettter base
to start from.
Diffstat (limited to 'gdk/broadway/broadway-protocol.h')
-rw-r--r-- | gdk/broadway/broadway-protocol.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gdk/broadway/broadway-protocol.h b/gdk/broadway/broadway-protocol.h index a78d09080f..1ea5ff9766 100644 --- a/gdk/broadway/broadway-protocol.h +++ b/gdk/broadway/broadway-protocol.h @@ -20,13 +20,16 @@ typedef enum { /* Sync changes with broadway.js */ BROADWAY_NODE_SHADOW = 8, BROADWAY_NODE_OPACITY = 9, BROADWAY_NODE_CLIP = 10, - BROADWAY_NODE_KEEP_ALL = 11, - BROADWAY_NODE_KEEP_THIS = 12, - BROADWAY_NODE_TRANSFORM = 13, - BROADWAY_NODE_DEBUG = 14, - BROADWAY_NODE_REUSE = 15, + BROADWAY_NODE_TRANSFORM = 11, + BROADWAY_NODE_DEBUG = 12, + BROADWAY_NODE_REUSE = 13, } BroadwayNodeType; +typedef enum { /* Sync changes with broadway.js */ + BROADWAY_NODE_OP_APPEND_NODE = 0, + BROADWAY_NODE_OP_REMOVE_NODE = 1, +} BroadwayNodeOpType; + static const char *broadway_node_type_names[] G_GNUC_UNUSED = { "TEXTURE", "CONTAINER", @@ -39,8 +42,6 @@ static const char *broadway_node_type_names[] G_GNUC_UNUSED = { "SHADOW", "OPACITY", "CLIP", - "KEEP_ALL", - "KEEP_THIS", "TRANSFORM", "DEBUG", "REUSE", |