Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dummy_compositor] Add exit-on-enable option. JB#46746
Dummy compositor exits when it manages to reserve compositor D-Bus name. Logic wise this means that the previous compositor process knows that it should exit, but might not have done so yet and still retain some non- shareable resources. As mce now waits for previous compositor instance to exit before granting the current one permission to draw, getting a setUpdatesEnabled(true) method call can be assumed to mean that all resources obtained by the previous compositor have been released. Add --exit-on-enable option that modifies dummy compositor behavior so that it exits on setUpdatesEnabled(true) method call rather than NameAcquired signal. Also add option for releasing name before exiting - which is mainly interesting for purposes of testing/debugging mce side state logic. Update usage information so that it covers all supported options. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
87 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters