texture: Add gdk_texture_diff()
authorBenjamin Otte <otte@redhat.com>
Thu, 27 Apr 2023 22:12:49 +0000 (00:12 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 1 May 2023 20:24:14 +0000 (22:24 +0200)
commit1883035d34f01ee6aba135d6c534d6c566dd9c7d
tree8186794735d559d7ccfedde76e0faf68fedf6b61
parentc542351a73538b42bb820324c6590350b14a48b7
texture: Add gdk_texture_diff()

... and use it in rendernodes.

Setting up textures for diffing is done via gdk_texture_set_diff() which
should only be used during texture construction.

Note that the pointers to next/previous are allowed to dangle if one of
the textures is finalized, but that's fine because we always check both
textures' links to each other before we consider the pointer valid.
gdk/gdktexture.c
gdk/gdktextureprivate.h
gsk/gskrendernodeimpl.c