diff options
author | Mingu Jeon <mingu85.jeon@samsung.com> | 2019-04-05 14:55:24 +0900 |
---|---|---|
committer | HyunKyung Kim <hk310.kim@samsung.com> | 2020-03-04 15:10:21 +0900 |
commit | ef49f53d71fecf973bfc321d92bc68f419e8745c (patch) | |
tree | d16d71b1e8576acd662b0c6db2f32fad19f57feb /libhwc2.1/libresource/ExynosResourceManager.cpp | |
parent | 0383eecdeaeb7c1d5b46daba5a36ab28da4c85bd (diff) |
libhwc2.1: Conditional support of color transform
This patch composites layer with GLES when
display doesn't support color transform.
Change-Id: I90cbdf2f2b58b34a04f92b008612a024b178ba14
Signed-off-by: Mingu Jeon <mingu85.jeon@samsung.com>
Diffstat (limited to 'libhwc2.1/libresource/ExynosResourceManager.cpp')
-rw-r--r-- | libhwc2.1/libresource/ExynosResourceManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhwc2.1/libresource/ExynosResourceManager.cpp b/libhwc2.1/libresource/ExynosResourceManager.cpp index 8a6f089..103d763 100644 --- a/libhwc2.1/libresource/ExynosResourceManager.cpp +++ b/libhwc2.1/libresource/ExynosResourceManager.cpp @@ -1094,6 +1094,10 @@ int32_t ExynosResourceManager::validateLayer(uint32_t index, ExynosDisplay *disp #ifndef HWC_SUPPORT_COLOR_TRANSFORM if (display->mColorTransformHint != HAL_COLOR_TRANSFORM_IDENTITY) return eUnSupportedColorTransform; +#else + if ((display->mColorTransformHint == HAL_COLOR_TRANSFORM_ERROR) && + (layer->mOverlayPriority < ePriorityHigh)) + return eUnSupportedColorTransform; #endif if ((display->mLowFpsLayerInfo.mHasLowFpsLayer == true) && |