diff options
| author | 2019-03-27 15:21:21 -0700 | |
|---|---|---|
| committer | 2019-03-28 00:50:17 +0000 | |
| commit | 9f938570785adf8b737bc1521486f6273e70c920 (patch) | |
| tree | b4d1e98d6b26a8794263de4d7e4a1feb50cdaf26 /services/surfaceflinger/SurfaceFlinger.cpp | |
| parent | 70bfd44f5efd5f07e8951ae3bd46d88703a20265 (diff) | |
SurfaceFlinger: allow confing change in AoD
Remove the restriction in setDesiredActiveConfig when we are in '
AoD mode as there are no limitations in setting the config during AoD.
Test: Set power mode to HWC_POWER_MODE_DOZE and change active configs
Bug: 128635447
Change-Id: Iff74d3deb2c4a72428f916d35676b0b60436e2de
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index f7e4afd01d..207258e393 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -955,11 +955,6 @@ void SurfaceFlinger::setDesiredActiveConfig(const ActiveConfigInfo& info) { ALOGW("Attempt to set active config %d for virtual display", info.configId); return; } - int currentDisplayPowerMode = display->getPowerMode(); - if (currentDisplayPowerMode != HWC_POWER_MODE_NORMAL) { - // Don't change active config when in AoD. - return; - } // Don't check against the current mode yet. Worst case we set the desired // config twice. However event generation config might have changed so we need to update it |