Merge lp://staging/~dbarth/unity-2d/defer-composite into lp://staging/unity-2d
Status: | Merged |
---|---|
Approved by: | Gerry Boland |
Approved revision: | 1162 |
Merged at revision: | 1157 |
Proposed branch: | lp://staging/~dbarth/unity-2d/defer-composite |
Merge into: | lp://staging/unity-2d |
Diff against target: |
380 lines (+202/-52) 10 files modified
config.h.in (+6/-0) data/com.canonical.Unity2d.gschema.xml (+9/-0) libunity-2d-private/src/CMakeLists.txt (+1/-0) libunity-2d-private/src/compositorhelper.cpp (+106/-0) libunity-2d-private/src/compositorhelper.h (+43/-0) libunity-2d-private/src/windowimageprovider.cpp (+1/-50) libunity-2d-private/src/windowimageprovider.h (+0/-1) spread/Workspaces.qml (+2/-0) spread/app/spreadview.cpp (+31/-0) spread/app/spreadview.h (+3/-1) |
To merge this branch: | bzr merge lp://staging/~dbarth/unity-2d/defer-composite |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gerry Boland (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+157602@code.staging.launchpad.net |
Commit message
Add an option to adjust the use of the composite extension to generate window previews for the spread.
Enable the 'jit-composite' in com.canonical.
By default this option is set to false, to keep the same behaviour as before. This maintains window previews continuously, with the advantage of an immediate availability when the spread feature is called and displayed. The disadvantage is that memory usage is higher in the X server and can result in sub-optimal performances on low-end systems.
Turn the option to true on low-end systems where memory is limited and/or the video driver is less performant.
Description of the change
1. defer the activation of the composite mode; this way, windows are not redirected until necessary, saving resources on the server side
2. only activate composite for the parent window of the window previews requested (in practice this is the root window, I couldn't make that better)
3. activate compositing on all root and screens only if the workspace switcher view is requested
4. deactivate compositing after 5s, hopefully when the spread effect is already displayed; again saving resources on the server side
FAILED: Continuous integration, rev:1157 /code.launchpad .net/~dbarth/ unity-2d/ defer-composite /+merge/ 157602/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// s-jenkins: 8080/job/ unity-2d- ci/31/ s-jenkins: 8080/job/ unity-2d- ci/./distributi on=precise, flavor= amd64/31 s-jenkins: 8080/job/ unity-2d- ci/./distributi on=precise, flavor= i386/31
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ unity-2d- ci/31/rebuild
http://