commit | fb3599c39bad496a86a213badbab74e75e0378bc | [log] [tgz] |
---|---|---|
author | John Stultz <john.stultz@linaro.org> | Tue Aug 21 11:21:56 2018 -0700 |
committer | John Stultz <john.stultz@linaro.org> | Fri Aug 31 09:10:36 2018 -0700 |
tree | ddbdaa2289164e4394bd80b0a95a6e7d8dd788ab | |
parent | a451483cf1999af2ac76b0e9ab305da3d4392382 [diff] |
drm_hwcomposer: Add support for P+ environments Originally-by: Alistair Strachan <astrachan@google.com> With Android P, the GraphicBufferMapper ImportBuffer interface has changed, which breaks the current drm_hwcomposer master branch: https://android.googlesource.com/platform/frameworks/native/+/dbbe33b95336efa74e8bb4ebcf6cba50919aa247 Alistair has updated the AOSP/master branch of drm_hwcomposer to make it build: https://android.googlesource.com/platform/external/drm_hwcomposer/+/4f73630dcdab6604a3f4b3e7d59068633d923745%5E2..4f73630dcdab6604a3f4b3e7d59068633d923745/ But since we need to keep older users working, so I've forward ported and conditionalized the code so both new and old users can properly build. Change-Id: I2089c1105a7074ff13b5ddfe2d2eb7129917794f Signed-off-by: John Stultz <john.stultz@linaro.org> --- v2: * Fix up LOCAL_CPPFLAGS typeo and unsued variable errors both found thanks to Alexandru Gheorghe v3: * Reordered so this patch comes last * Squish layer_count calculation patch into this one
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-3.5 -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!