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

Commit 13c1869a authored by Su Hong Koo's avatar Su Hong Koo
Browse files

SF: Add RefreshRateSelector to LayerInfo via LayerProps

Add RefreshRateSelector to LayerInfo via LayerProps to simplify method
interfaces in LayerInfo and LayerHistory by removing the selector from
the argument.

To match LayerInfo to RefreshRateSelector, add LayerFilter to
RefreshRateSelector, which is already per-display. The filter is fed in
from DisplayDevice when its filter is set.

Add Scheduler::getRefreshRateSelectorForLayerStack() to obtain the
proper selector for a given layer snapshot via its stack.

Internalize isActiveLayer() helper from LayerHistory in LayerInfo.

Flag: com.android.graphics.surfaceflinger.flags.follower_arbitrary_refresh_rate_selection
Bug: 371584290
Test: New RefreshRateSelectorTest
Test: Manually tested by playing 60fps YT video on comet w/ RR overlay
Change-Id: I07458245da0a9c7c7aa0aff4942ed0b30d47236e
parent 7070ba69
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