diff options
author | Alexander Larsson <alexl@redhat.com> | 2017-11-22 10:32:47 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2017-11-23 10:48:29 +0100 |
commit | f7ff6dbb66a6200ceb4222c6a1ebe152647e0258 (patch) | |
tree | 69414ed3086e65233a933c9fa1ae5012915c7c1f /gsk/gskbroadwayrenderer.c | |
parent | 0083c084e47d95319879cffcd5bbb1c4c49042ef (diff) | |
download | gtk+-f7ff6dbb66a6200ceb4222c6a1ebe152647e0258.tar.gz |
broadway: Add RoundedClip node
Diffstat (limited to 'gsk/gskbroadwayrenderer.c')
-rw-r--r-- | gsk/gskbroadwayrenderer.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gsk/gskbroadwayrenderer.c b/gsk/gskbroadwayrenderer.c index 7a19185c32..0720369078 100644 --- a/gsk/gskbroadwayrenderer.c +++ b/gsk/gskbroadwayrenderer.c @@ -178,10 +178,7 @@ gsk_broadway_renderer_add_node (GskRenderer *self, case GSK_COLOR_NODE: { add_uint32 (nodes, BROADWAY_NODE_COLOR); - add_uint32 (nodes, x); - add_uint32 (nodes, y); - add_uint32 (nodes, width); - add_uint32 (nodes, height); + add_rect (nodes, &node->bounds); add_rgba (nodes, gsk_color_node_peek_color (node)); } return; @@ -222,6 +219,15 @@ gsk_broadway_renderer_add_node (GskRenderer *self, } return; + case GSK_ROUNDED_CLIP_NODE: + { + add_uint32 (nodes, BROADWAY_NODE_ROUNDED_CLIP); + add_rounded_rect (nodes, gsk_rounded_clip_node_peek_clip (node)); + gsk_broadway_renderer_add_node (self, nodes, node_textures, + gsk_rounded_clip_node_get_child (node)); + } + return; + default: { cairo_surface_t *surface; |