hwc: Enhance local conversion issue for non-secure video

When the input layer is a video, 2020 layers can be converted to sRGB
not only for secure video, but also for non-secure video. Besides, the
check on color_metadata.colorPrimaries for IsBT2020 is added to make the
conversion more specific and readable.

Bug: b/112055380
Test: UHD secure video in Dataspace::BT2020 can be played with HWC
      UHD non-secure video in Dataspace::BT2020 is played with HWC

Change-Id: If339f0278895ae9b8b9591fae1d61ef59b3fcb08
1 file changed