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

Commit 76b2fc03 authored by Su Hong Koo's avatar Su Hong Koo
Browse files

SF: Use pacesetter instead of active display as the "default" display

Active display as the default display does not extend very well to the
connected display world, where the active display(s) may be off while
the external display(s) are powered-on and actually active.

This CL replaces the usage of mActiveDisplayId and
getDefaultDisplayDevice* where it makes sense. It adds a new getter
method for pacesetter to the Scheduler and SurfaceFlinger. The default
display getters are renamed as getActiveDisplayDevice* to better
reflect on their source and to discourage its use as the "default".

Flag: com.android.graphics.surfaceflinger.flags.pacesetter_selection
Bug: 255635821
Test: manual testing on clamshell and foldable w/ ext display
Change-Id: I87aeb3551cf893f8161534cdd5568bb90e4f47cf
parent b70835d1
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