diff options
author | Alexander Larsson <alexl@redhat.com> | 2017-01-11 10:08:58 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2017-01-11 10:22:40 +0100 |
commit | 65ad2541d736a699d01642096631984be7d64681 (patch) | |
tree | 492d999fd786accf1330ecb74adb37ae8bf3e1ab /gtk/gtkcssimagecrossfade.c | |
parent | 2f453cc57e37638178f0cf2241609e829963af51 (diff) | |
download | gtk+-65ad2541d736a699d01642096631984be7d64681.tar.gz |
Snapshot: Only record names if inspector is recording
Otherwise we do a lot of allocations and vprintf calls which are
not used.
Diffstat (limited to 'gtk/gtkcssimagecrossfade.c')
-rw-r--r-- | gtk/gtkcssimagecrossfade.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcssimagecrossfade.c b/gtk/gtkcssimagecrossfade.c index 60e922480e..2b9aab1271 100644 --- a/gtk/gtkcssimagecrossfade.c +++ b/gtk/gtkcssimagecrossfade.c @@ -141,7 +141,8 @@ gtk_css_image_cross_fade_snapshot (GtkCssImage *image, { GskRenderNode *node = gsk_cross_fade_node_new (start_node, end_node, cross_fade->progress); - gsk_render_node_set_name (node, "CrossFade"); + if (snapshot->record_names) + gsk_render_node_set_name (node, "CrossFade"); gtk_snapshot_append_node (snapshot, node); gsk_render_node_unref (node); |