summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Ye <kongxincai@google.com>2022-03-09 01:04:41 +0000
committerRay Ye <kongxincai@google.com>2022-03-09 23:40:21 +0000
commit84066d24865870cacf18418f6670e5724a9872c0 (patch)
treed76a9d4eca4f5ea512ea48232b34c49801588af8
parent7d821c3185ba38db706485c9d8657af9d29e37ad (diff)
downloadgs101-84066d24865870cacf18418f6670e5724a9872c0.tar.gz
libhwc2.1: Moved log message in setColorModeWithRenderIntent to
conditional Bug: 223282158 Test: ran "adb logcat | grep setColorModeWithRenderIntent" on device startup Change-Id: I3d6a5f77a86e14829bd1486224fc0e6f18ae1cba
-rw-r--r--libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp b/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp
index e9d1972..1dd2fc5 100644
--- a/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp
+++ b/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp
@@ -214,7 +214,6 @@ int32_t ExynosPrimaryDisplayModule::getRenderIntents(int32_t mode,
int32_t ExynosPrimaryDisplayModule::setColorModeWithRenderIntent(int32_t mode,
int32_t intent)
{
- ALOGD("%s: mode(%d), intent(%d)", __func__, mode, intent);
IDisplayColorGS101* displayColorInterface = getDisplayColorInterface();
const DisplayType display = getDisplayTypeFromIndex(mIndex);
const ColorModesMap colorModeMap = displayColorInterface == nullptr
@@ -242,8 +241,10 @@ int32_t ExynosPrimaryDisplayModule::setColorModeWithRenderIntent(int32_t mode,
mDisplaySceneInfo.setColorMode(colorMode);
mDisplaySceneInfo.setRenderIntent(renderIntent);
- if (mColorMode != mode)
+ if (mColorMode != mode) {
+ ALOGD("%s: mode(%d), intent(%d)", __func__, mode, intent);
setGeometryChanged(GEOMETRY_DISPLAY_COLOR_MODE_CHANGED);
+ }
mColorMode = (android_color_mode_t)mode;
return HWC2_ERROR_NONE;