diff options
author | Timm Bäder <mail@baedert.org> | 2020-01-24 13:17:09 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-01-26 18:21:07 +0100 |
commit | 77e0d360ed721fb9a8eb9cebe10346cfda304eb4 (patch) | |
tree | 4f3457eecb246b0814502fec9649c655f9f3503f /gsk/gskrendernodeprivate.h | |
parent | 942a93250a5227a051017737873b7d40f24b9e59 (diff) | |
download | gtk+-77e0d360ed721fb9a8eb9cebe10346cfda304eb4.tar.gz |
Add pure and const annotations to various functions
Diffstat (limited to 'gsk/gskrendernodeprivate.h')
-rw-r--r-- | gsk/gskrendernodeprivate.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gsk/gskrendernodeprivate.h b/gsk/gskrendernodeprivate.h index 2ced79738b..83d01740a5 100644 --- a/gsk/gskrendernodeprivate.h +++ b/gsk/gskrendernodeprivate.h @@ -28,8 +28,8 @@ struct _GskRenderNodeClass void (* finalize) (GskRenderNode *node); void (* draw) (GskRenderNode *node, cairo_t *cr); - gboolean (* can_diff) (GskRenderNode *node1, - GskRenderNode *node2); + gboolean (* can_diff) (const GskRenderNode *node1, + const GskRenderNode *node2); void (* diff) (GskRenderNode *node1, GskRenderNode *node2, cairo_region_t *region); @@ -38,8 +38,8 @@ struct _GskRenderNodeClass GskRenderNode * gsk_render_node_new (const GskRenderNodeClass *node_class, gsize extra_size); -gboolean gsk_render_node_can_diff (GskRenderNode *node1, - GskRenderNode *node2); +gboolean gsk_render_node_can_diff (const GskRenderNode *node1, + const GskRenderNode *node2) G_GNUC_PURE; void gsk_render_node_diff (GskRenderNode *node1, GskRenderNode *node2, cairo_region_t *region); |