summaryrefslogtreecommitdiff
path: root/gsk/gskrendernodeprivate.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-12-21 12:20:56 +0100
committerAlexander Larsson <alexl@redhat.com>2016-12-21 14:01:34 +0100
commit230d27b079c4b98b1eb5000a0e70ca95a937c9c5 (patch)
treefbc0adb48ce32cd414200114190b16812a3d3da0 /gsk/gskrendernodeprivate.h
parent22110ef5a480fbddf9d20f510a64f4524a52718f (diff)
downloadgtk+-230d27b079c4b98b1eb5000a0e70ca95a937c9c5.tar.gz
GskRenderNode: Use C99 flexible arrays to avoid extra allocation
Instead of a separate allocation for any arrays in the render node we allocate these as part of the render node itself, using C99 flexible arrays. This leads to less allocations, which is nice, but the major reason for this is that it allows us to change the allocation scheme further in the future. For instance, we want to do stack-like allocation so that all the render-nodes for an entire frame are allocated in one (or a few) chunks.
Diffstat (limited to 'gsk/gskrendernodeprivate.h')
-rw-r--r--gsk/gskrendernodeprivate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gskrendernodeprivate.h b/gsk/gskrendernodeprivate.h
index 2f3d37b022..8eacb7a1aa 100644
--- a/gsk/gskrendernodeprivate.h
+++ b/gsk/gskrendernodeprivate.h
@@ -36,7 +36,7 @@ struct _GskRenderNodeClass
cairo_t *cr);
};
-GskRenderNode *gsk_render_node_new (const GskRenderNodeClass *node_class);
+GskRenderNode *gsk_render_node_new (const GskRenderNodeClass *node_class, gsize extra_size);
void gsk_render_node_get_bounds (GskRenderNode *node,
graphene_rect_t *frame);