summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2022-03-10 02:55:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-03-10 02:55:43 +0000
commit69c79fcdda50dc66215580f8b10036e700a1c4e8 (patch)
treed76a9d4eca4f5ea512ea48232b34c49801588af8
parent03dde6b4cb97ee84716e13af6a25ff1670968c35 (diff)
parent84066d24865870cacf18418f6670e5724a9872c0 (diff)
downloadgs101-69c79fcdda50dc66215580f8b10036e700a1c4e8.tar.gz
Merge "libhwc2.1: Moved log message in setColorModeWithRenderIntent to conditional" into tm-dev
-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;