| commit | 129d12f38a3abf0c0b0c920f57fe01a4caa0b085 | [log] [tgz] |
|---|---|---|
| author | Drew Davenport <ddavenport@google.com> | Thu Apr 24 10:29:32 2025 -0600 |
| committer | Drew Davenport <ddavenport@google.com> | Tue Jun 10 06:59:51 2025 +0000 |
| tree | ee1099911f2159b4feb724e8db05182f00cfc7d0 | |
| parent | 6f1f89a2c098083cc062307f77812cdad8c0c731 [diff] |
drm_hwcomposer: Report composition stats as vendor atoms The IStats service provides an interface for reporting metrics from vendor processes through the IStats::reportVendorAtom interface. The type and ordering of the data in a VendorAtom are determined by a proto definition which is typically OEM-specific. The code to construct the VendorAtom is generated from the proto definition. Add a soong config variable in the DRMHWC config namespace to enable the atom reporting. Currently there is only one such implementation. atom_reporter: Set this to configure OEM-specific atom reporting. With the config variable omitted, reporting will be disabled and a stub implementation is used, ensuring no build or runtime dependency or usage of the IStats service. Change-Id: I832adbd42412db1ab4c9403c1da60fa075443caa Signed-off-by: Drew Davenport <ddavenport@google.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-19 -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!