mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
tests: Link compare-render statically
This is a temporary change, only needed until we make the new snapshot and rendernode apis public.
This commit is contained in:
parent
f9c9a03404
commit
c1a99bf901
@ -1,6 +1,6 @@
|
||||
compare_render = executable('compare-render',
|
||||
['compare-render.c', '../reftests/reftest-compare.c', 'replay-node.c'],
|
||||
dependencies: libgtk_dep,
|
||||
dependencies: libgtk_static_dep,
|
||||
c_args: common_cflags,
|
||||
)
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include <gtk/gtksnapshotprivate.h>
|
||||
#include <gsk/gskrendernodeprivate.h>
|
||||
|
||||
void
|
||||
replay_node (GskRenderNode *node, GtkSnapshot *snapshot);
|
||||
@ -25,8 +27,11 @@ replay_cairo_node (GskRenderNode *node, GtkSnapshot *snapshot)
|
||||
static void
|
||||
replay_color_node (GskRenderNode *node, GtkSnapshot *snapshot)
|
||||
{
|
||||
/* FIXME: can't recreate color nodes without gsk_color_node_new2 */
|
||||
gtk_snapshot_append_node (snapshot, node);
|
||||
graphene_rect_t bounds;
|
||||
gsk_render_node_get_bounds (node, &bounds);
|
||||
gtk_snapshot_append_color2 (snapshot,
|
||||
gsk_color_node_get_color2 (node),
|
||||
&bounds);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user