compositor: damage pending subsurfaces when committing them
authorEmilio Pozuelo Monfort <pochu27@gmail.com>
Fri, 27 Jan 2017 16:30:29 +0000 (17:30 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 7 Feb 2017 12:25:27 +0000 (14:25 +0200)
commit4f3cad78285fca473b4a108aa5276fc08addee56
tree41c464d195e80b75749f1518dcebd31fcd132a92
parente7c6aa6af4b0800807f053f3b780a443e5b04423
compositor: damage pending subsurfaces when committing them

When a client changes the subsurfaces state, we need to damage
them so the result is visible. We do that by flagging the surfaces
when the state changes and causing damage when committing the
state. This prevents normal repaints from considering these changes
until a commit has happened, and allows the client to atomically
schedule several changes.

This fixes the subsurface_z_order test, which is now marked as expected
to succeed.

Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Micah Fedke <micah.fedke@collabora.co.uk>
libweston/compositor.c
libweston/compositor.h
tests/subsurface-shot-test.c