Merge freedesktop/master into AOSP

This merges the drm_hwcomposer code from freedesktop/master
into AOSP.

This entirely takes the freedesktop/master side of the merge,
with the exception of the OWNERS file.

Bug: 62066689
Bug: 77276633
Bug: 79166135
Change-Id: I009e4f290835b1653cfc1e40bdc06bb478ac0088
Signed-off-by: John Stultz <john.stultz@linaro.org>
tree: 4d57dccc8ccb4cda7042882bd4b0b7b2efb4db0e
  1. .clang-format
  2. .gitlab-ci.yml
  3. Android.mk
  4. MODULE_LICENSE_APACHE2
  5. NOTICE
  6. OWNERS
  7. README.md
  8. autofd.h
  9. autolock.cpp
  10. autolock.h
  11. drmconnector.cpp
  12. drmconnector.h
  13. drmcrtc.cpp
  14. drmcrtc.h
  15. drmdisplaycomposition.cpp
  16. drmdisplaycomposition.h
  17. drmdisplaycompositor.cpp
  18. drmdisplaycompositor.h
  19. drmencoder.cpp
  20. drmencoder.h
  21. drmeventlistener.cpp
  22. drmeventlistener.h
  23. drmframebuffer.h
  24. drmhwcgralloc.h
  25. drmhwcomposer.h
  26. drmhwctwo.cpp
  27. drmhwctwo.h
  28. drmmode.cpp
  29. drmmode.h
  30. drmplane.cpp
  31. drmplane.h
  32. drmproperty.cpp
  33. drmproperty.h
  34. drmresources.cpp
  35. drmresources.h
  36. hwcutils.cpp
  37. platform.cpp
  38. platform.h
  39. platformdrmgeneric.cpp
  40. platformdrmgeneric.h
  41. platformhisi.cpp
  42. platformhisi.h
  43. platformminigbm.cpp
  44. platformminigbm.h
  45. tests/
  46. vsyncworker.cpp
  47. vsyncworker.h
  48. worker.cpp
  49. worker.h
README.md

drm_hwcomposer

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!