commit | 8fae156cf9127c61fc3ba998e71de85b737ac3e8 | [log] [tgz] |
---|---|---|
author | Roman Kovalivskyi <roman.kovalivskyi@globallogic.com> | Thu Jan 30 20:20:47 2020 +0200 |
committer | Roman Kovalivskyi <roman.kovalivskyi@globallogic.com> | Wed Feb 19 17:08:20 2020 +0200 |
tree | 3b4b8d5f0ac8e2f62f6ffa7b95c99610a0fb5d08 | |
parent | 65f2ba80df03635a75c7ecd70f8a39c0d76bd425 [diff] |
drm_hwcomposer: Add fallback to client for layers flattening Google recommends to delegate composition to GLES instead of HWC when screen isn't updating to conserve power, as stated on page https://source.android.com/devices/graphics/implement-hwc. Current implementation of hwcomposer has flattening of layers if after some time there were no updates of frames, but it uses writeback connector. Not every device has a support of writeback feature, so some sort of fallback should be provided. It is possible to fallback to client composition in case if writeback isn't available. This is used to reduce power consumption since squashing layers into a single layer on GPU and then using that buffer is more efficient than loading drm device. Signed-off-by: Roman Kovalivskyi <roman.kovalivskyi@globallogic.com>
Patches to drm_hwcomposer are very much welcome, we really want this to be the universal HW composer implementation for Android and similar platforms So please bring on porting patches, bugfixes, improvements for documentation and new features.
A short list of contribution guidelines:
Submit changes via gitlab merge requests on gitlab.freedesktop.org
drm_hwcomposer is Apache 2.0 Licensed and we require contributions to follow the developer's certificate of origin: http://developercertificate.org/
When submitting new code please follow the naming conventions documented in the generated documentation. Also please make full use of all the helpers and convenience macros provided by drm_hwcomposer. The below command can help you with formatting of your patches:
`git diff | clang-format-diff-5.0 -p 1 -style=file`
Hardware specific changes should be tested on relevant platforms before committing.
If you need inspiration, please checkout our TODO issues
Happy hacking!