Using xml file for configuration in upstream drm_hwcomposer
I plan to contribute some features to this repository that we need for our project, but first I want to know your opinion regarding implementation:
Features we need:
- Setting of primary display connector name. (Similar issue #14 (closed))
- Setting maximum UI frame size (!62 (closed))
- Overriding display resolution for each connector.
- This list could be extended while user experience is growing.
Also some of configuration are already defined as system properties, like path to DRM device, enabling overlay planes etc.
My concern is that Android has a lot of ways to set the properties, like multiple init.rc files, system.prop file, PRODUCT_PROPERTY_OVERRIDE definition in makefiles. This could cause multiple properties related to drm_hwcomposer to be spread across these sources, making debugging process harder.
Inspired from tinyhal that have flexible configuration ability using .xml file: https://github.com/CirrusLogic/tinyhal/blob/master/audio.example.xml, I was wondering if we could make something similar here?
Please provide your feedback to allow me to plan this activity.