gsk: Add 'blit' program

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

For the root node we do not need to use blending, as it does not have any backdrop to blend into. We can use a simpler 'blit' program that only takes the content of the source and fills the texture quad with it.

0fbf638 gsk: Add 'blit' program
gsk/gskglrenderer.c | 25 ++++++++++++++++++++++---
gsk/resources/glsl/blend.vs.glsl | 2 +-
gsk/resources/glsl/blit.fs.glsl | 5 +++++
gsk/resources/glsl/blit.vs.glsl | 6 ++++++
4 files changed, 34 insertions(+), 4 deletions(-)

Upstream: git.gnome.org


  • Share