Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db35c495 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "surfaceflinger: Set correct initial value for mActiveColorMode"

parents fcae2e36 901a86e1
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -121,8 +121,7 @@ DisplayDevice::DisplayDevice(
    ANativeWindow* const window = mNativeWindow.get();
    ANativeWindow* const window = mNativeWindow.get();


#ifdef USE_HWC2
#ifdef USE_HWC2
    // Set defaultColorMode to SRGB if this device supports wide-color
    mActiveColorMode = HAL_COLOR_MODE_NATIVE;
    mActiveColorMode = (supportWideColor) ? HAL_COLOR_MODE_SRGB : HAL_COLOR_MODE_NATIVE;
    mDisplayHasWideColor = supportWideColor;
    mDisplayHasWideColor = supportWideColor;
#else
#else
    (void) supportWideColor;
    (void) supportWideColor;