CE: flush the staged brightness to HWC before power off
After SurfaceFlinger receives the brightness commands, the commands are sent to HWC until the next frame presents. However, no following frames are present after the power mode is set to off, and HWC cannot receive the last brightness commands. This change forces SurfaceFlinger to flush the staged brightness to HWC prior to execution of power off. Bug: 239908529 Test: suspend and resume repeatedly Change-Id: Ia8fb04399e757de16e06e6516d86bdfcfabd5a2e
Showing
- services/surfaceflinger/CompositionEngine/include/compositionengine/Display.h 3 additions, 0 deletions...ger/CompositionEngine/include/compositionengine/Display.h
- services/surfaceflinger/CompositionEngine/include/compositionengine/impl/Display.h 1 addition, 0 deletions...ompositionEngine/include/compositionengine/impl/Display.h
- services/surfaceflinger/CompositionEngine/include/compositionengine/mock/Display.h 1 addition, 0 deletions...ompositionEngine/include/compositionengine/mock/Display.h
- services/surfaceflinger/CompositionEngine/src/Display.cpp 15 additions, 10 deletionsservices/surfaceflinger/CompositionEngine/src/Display.cpp
- services/surfaceflinger/DisplayDevice.cpp 9 additions, 0 deletionsservices/surfaceflinger/DisplayDevice.cpp
Loading
Please register or sign in to comment