diff options
author | Sushil Chauhan <sushilchauhan@codeaurora.org> | 2018-11-21 11:13:33 -0800 |
---|---|---|
committer | Sushil Chauhan <sushilchauhan@codeaurora.org> | 2018-11-26 23:08:52 -0800 |
commit | 16453a54893d9c9ccfa26c49d19fe84bdf11a858 (patch) | |
tree | bc570de2e32060a73967825d1d6da70acdd1f6f1 /sdm/libs/hwc2/hwc_layers.cpp | |
parent | 459f4e9581748577b72bcbe15bcbe1b6391bdc9e (diff) |
hwc2: Read Color Metadata from handle only for Video layers
Only Video module populates the Color Metadata in metadata FD of the
handle, so avoid reading it for UI layers.
CRs-Fixed: 2353610
Change-Id: Ib0988a06d02345931479bb6be4674a4e7e7d8b3f
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_layers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp index 71464c4e..35676742 100644 --- a/sdm/libs/hwc2/hwc_layers.cpp +++ b/sdm/libs/hwc2/hwc_layers.cpp @@ -913,7 +913,8 @@ void HWCLayer::ValidateAndSetCSC(const private_handle_t *handle) { } } - if (IsBT2020(layer_buffer->color_metadata.colorPrimaries)) { + // Only Video module populates the Color Metadata in handle. + if (layer_buffer->flags.video && IsBT2020(layer_buffer->color_metadata.colorPrimaries)) { // android_dataspace_t doesnt support mastering display and light levels // so retrieve it from metadata for BT2020(HDR) use_color_metadata = true; |