hwc2: Fix reading HDR10+ from gralloc metadata
- One variable per_frame_hdr_metadata_ was used to track whether to
read or avoid from gralloc color metadatas. This variable was set from
both SetLayerPerFrameMetadata and SetLayerPerFrameMetadataBlobs.
- Since SF calls only SetLayerPerFrameMetadata (w/o support for HDR10+
thru FW), it avoided reading HDR10+ data from gralloc metadata and
hence HDR10+ dynamic metadata was not updatedi.
- HDR10+ blob data from FW API has higher priority over gralloc
metadata, once the FW API sets HDR10+ avoid reading it from gralloc
metadata as Video HAL doesn't set both.
- Composer must read color metadata from gralloc metadata unless SF sets
all PerFrameMetaDataBlobs for HDR10+.
Change-Id: I3e288f2947778cad5f95264dd4926ed596d24b96
Crs-fixed: 2581361
2 files changed