gsk: Turn GskRenderNode into a pure GTypeInstance

Desktop / GNOME / GTK - Emmanuele Bassi [gnome.org] - 18 October 2016 05:49 UTC

Using GObject as the base type for a transient tree may prove to be too intensive, especially when creating a lot of node instances. Since we don't need properties or signals, and we don't need complex destruction semantics, we can use GTypeInstance directly as the base type for GskRenderNode.

b8a92df gsk: Turn GskRenderNode into a pure GTypeInstance
gsk/gskrenderer.c | 31 +-----
gsk/gskrendernode.c | 264 ++++++++++++++++++++++++++++++++++++++++++--
gsk/gskrendernode.h | 17 +++
gsk/gskrendernodeprivate.h | 8 +-
4 files changed, 283 insertions(+), 37 deletions(-)

Upstream: git.gnome.org


  • Share