gdk: Make the optimized premultiply function a macro
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Thu, 3 Mar 2022 14:34:29 +0000 (14:34 +0000)
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Thu, 3 Mar 2022 15:04:45 +0000 (16:04 +0100)
commit3a98b28ab7f9eead21dcfef2d07a6af4fd8c33ce
treec7373f10089aafa8c975dd7b0037afcd40896127
parentcfeedcc321368cea51bbc68690635b7eafa416fa
gdk: Make the optimized premultiply function a macro

That way, all permutations are possible.  Previously it was only useful
in the cairo renderer, which required rgba8 → premultiplied bgra8, while
the GL renderer required rgba8 → premultiplied rgba8.  Now both are
available.
gdk/gdkmemoryformat.c