diff options
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) && |