composer: Read ColorMetaData from gralloc hnd when it's valid

- Read CSC, mastering display info, light levels, cRI and hdr10+
  dynamic metadata from gralloc metadata when it's valid.
- This handles use-cases where some clients use native window API
  and some use setMetadata to set gralloc metadata.
- MAX_FRAME_AVERAGE_LIGHT_LEVEL is in cd/m^2 no need to * 10000

Change-Id: Ib2bec4a493eb0c1225c5404fbbef424e4c0f8b6a
Crs-fixed: 2608417
2 files changed