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

Commit a7049a3b authored by Su Hong Koo's avatar Su Hong Koo
Browse files

SF: Avoid redundant pacesetter setting in SF::setPhysicalDisplayPowerMode

SurfaceFlinger::setPhysicalDisplayPowerMode() currently sets the front
internal display as pacesetter and invokes
SF::applyRefreshRateSelectorPolicy() every time. This is wasteful if the
pacesetter designation won't change.

This CL adds a check to the call to applyRefreshRateSelectorPolicy() and
Scheduler::setPacesetterDisplay() so that they are only invoked when
there's actual change to be made.

Flag: com.android.graphics.surfaceflinger.flags.pacesetter_selection
Bug: 389983418
Test: SetPhysicalDisplayPowerModeTest
Change-Id: Iac4b00fec08c5ae9b7aa97200d04194edd793348
parent c1c79a5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment