mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 09:40:10 +00:00
testsuite: Update replay nodes
We can't currently recreate color nodes with public api, so cheat and reuse the node we got.
This commit is contained in:
parent
87e9c940a4
commit
d5ae94ca5d
@ -25,11 +25,8 @@ replay_cairo_node (GskRenderNode *node, GtkSnapshot *snapshot)
|
||||
static void
|
||||
replay_color_node (GskRenderNode *node, GtkSnapshot *snapshot)
|
||||
{
|
||||
graphene_rect_t bounds;
|
||||
gsk_render_node_get_bounds (node, &bounds);
|
||||
gtk_snapshot_append_color (snapshot,
|
||||
gsk_color_node_get_color (node),
|
||||
&bounds);
|
||||
/* FIXME: can't recreate color nodes without gsk_color_node_new2 */
|
||||
gtk_snapshot_append_node (snapshot, node);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user