Add a custom WaylandSurfaceNode with its own materials
authorAndy Nichols <andy.nichols@nokia.com>
Fri, 11 May 2012 12:39:36 +0000 (14:39 +0200)
committerAndy Nichols <andy.nichols@nokia.com>
Fri, 18 May 2012 11:48:31 +0000 (13:48 +0200)
commit6816fb64eeefbafda994d7f5070c619637a62cec
tree64d09b713b3dc1398d43277b36a5caaf7c549545
parentb55620a74ed21f0ef497deeaad9f011078b5ce39
Add a custom WaylandSurfaceNode with its own materials

With the previous WaylandSurfaceNode based on QSGSimpleTextureNode,
QSGTexture's created from SHM buffers would always have and use their
alpha channels, despite the useTextureAlpha flag being set to false. Now
when the useTextureAlpha flag is set to false, we use a material that
ignores the textures alpha channel.

Change-Id: I9cc33939f37856495f8885357f49de5ffdd81d1f
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/compositor/compositor_api/compositor_api.pri
src/compositor/compositor_api/waylandsurfaceitem.cpp
src/compositor/compositor_api/waylandsurfacenode.cpp [new file with mode: 0644]
src/compositor/compositor_api/waylandsurfacenode.h [new file with mode: 0644]
src/compositor/compositor_api/waylandsurfacetexturematerial.cpp [new file with mode: 0644]
src/compositor/compositor_api/waylandsurfacetexturematerial.h [new file with mode: 0644]