rendernode: Add an offset node

Desktop / GNOME / GTK - Benjamin Otte [redhat.com] - 26 March 2018 16:16 EDT

This is a special case of the transform node that does a 2D translation.

The implementation in the Vulkan and GL renderers is crude and just does the same as the transform node.

Nothing uses that node yet.

ce743f28a1 rendernode: Add an offset node
gsk/gl/gskglrenderer.c | 27 ++++++
gsk/gskbroadwayrenderer.c | 1 +
gsk/gskenums.h | 2 +
gsk/gskrendernode.h | 11 +++
gsk/gskrendernodeimpl.c | 158 +++++++++++++++++++++++++++++++++
gsk/vulkan/gskvulkanrenderpass.c | 18 +++-
gtk/inspector/gtktreemodelrendernode.c | 4 +
gtk/inspector/recorder.c | 7 ++
8 files changed, 226 insertions(+), 2 deletions(-)

Upstream: git.gnome.org


  • Share