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

Commit 532a3ae5 authored by Su Hong Koo's avatar Su Hong Koo
Browse files

SF: Use specified pacesetterId in designatePacesetterDisplay

Currently, if the pacesetter_selection flag is enabled, Scheduler
ignores any pacesetterId argument passed into
Scheduler::designatePacesetterDisplay() and invokes
selectPacesetterDisplay() to select a new pacesetter. Same behavior
is present in Scheduler::promotePacesetterDisplayLocked().

This CL changes the condition for invoking selectPacesetterDisplay() in
both methods to only when a pacesetterId is not specified. This change
allows the caller to specify the pacesetter display.

Flag: com.android.graphics.surfaceflinger.flags.pacesetter_selection
Bug: 389983418
Test: atest libsurfaceflinger_unittests with and without the flag
Change-Id: If37b633d05f4be69615a44d2c3fb01502cf23d67
parent 761bc2da
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