mutter/cogl
Carlos Garnacho 1705a26fc7 cogl: Prefer swizzling to convert BGRA buffers
If the GL implementation/hw supports the GL_*_texture_swizzle extension,
pretend that BGRA textures shall contain RGBA data, and let the flipping
happen when the texture will be used in the rendering pipeline.

This avoids rather expensive format conversions when forcing BGRA buffers
into RGBA textures, which happens rather often with WL_SHM_FORMAT_ARGB8888
buffers (like gtk+ uses) in little-endian machines.

In intel/mesa/wayland, the performance improvement is rather noticeable,
CPU% as seen by top decreases from 45-50% to 25-30% when running
gtk+/tests/scrolling-performance with a cairo renderer.

https://bugzilla.gnome.org/show_bug.cgi?id=779234
2017-02-28 18:48:21 +01:00
..
build/autotools move everything into a cogl/ directory 2016-04-22 16:44:31 +02:00
cogl cogl: Prefer swizzling to convert BGRA buffers 2017-02-28 18:48:21 +01:00
cogl-gles2 build: Clean up .pc files 2017-02-15 23:54:07 +01:00
cogl-pango Make libmutter and friends parallel installable 2017-02-14 11:16:45 +08:00
cogl-path Make libmutter and friends parallel installable 2017-02-14 11:16:45 +08:00
test-fixtures Don't use config.h in clutter and cogl 2016-07-20 14:23:48 +08:00
tests Make libmutter and friends parallel installable 2017-02-14 11:16:45 +08:00
.gitignore Make it possible to include private cogl API from mutter 2016-07-20 14:23:48 +08:00
cogl-mutter-config.h.in Make it possible to include private cogl API from mutter 2016-07-20 14:23:48 +08:00
config-custom.h move everything into a cogl/ directory 2016-04-22 16:44:31 +02:00
configure.ac Make libmutter and friends parallel installable 2017-02-14 11:16:45 +08:00
Makefile.am move everything into a cogl/ directory 2016-04-22 16:44:31 +02:00