commit | a451483cf1999af2ac76b0e9ab305da3d4392382 | [log] [tgz] |
---|---|---|
author | John Stultz <john.stultz@linaro.org> | Fri Aug 24 16:27:36 2018 -0700 |
committer | John Stultz <john.stultz@linaro.org> | Fri Aug 31 09:09:56 2018 -0700 |
tree | a9e439dc361cf8f1e03005a066428e4239d9b002 | |
parent | 616fb227d0ae9e823e765e2ee3a7a44be7c3cf37 [diff] |
drm_hwcomposer: Store pixel_stride in the hwc_drm_bo The new GraphicBufferMapper ImportBuffer takes a pixel_stride as an argument, so we need to caluclate that and store it in the hwc_drm_bo at import so we can use it here. I'd still welcome better ideas to calculate pixel_stride for generic drm importer. Change-Id: Iea2c483f3750dd5bed38740802b560911bc54ef2 Signed-off-by: John Stultz <john.stultz@linaro.org> --- v2: * Utilized pixel stride values already in some gralloc handle implementations * Fixed embarasing bit/byte math snafu (preserving bits per pixel since YUV conversions using bytes doesn't seem sane) - Extra review still would be appreciated here! v3: * Renamed to use Drm... instead of DRM...
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!