diff options
author | Jan Ziak <0xe2.0x9a.0x9b@gmail.com> | 2019-10-12 08:58:23 +0200 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-06-26 11:45:29 +0100 |
commit | 679e9ed7b056ec3b17921863b5c7d2873a43c3b3 (patch) | |
tree | 6aec31f93e2bf0d2b10642398a7c56183aa49e34 /gdk-pixbuf/meson.build | |
parent | c7eada6cac522d095fdd13770619d807ca538346 (diff) | |
download | gdk-pixbuf-679e9ed7b056ec3b17921863b5c7d2873a43c3b3.tar.gz |
pixops: Avoid division during alpha scaling
This patch significantly improves performance
of gtksourceview-2.10.5 full-screen redraw
on a 4K display with an alpha channel.
Divisions by the common value 0xff0000 are converted into
multiplications by an optimizing C compiler.
For other values, 3 divisions are reduced to 1 division,
3 multiplications and some float-to-int conversions.
Diffstat (limited to 'gdk-pixbuf/meson.build')
0 files changed, 0 insertions, 0 deletions