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

Skip to content
Commit 414f4080 authored by Rachel Lee's avatar Rachel Lee
Browse files

Non-visible layers are now "inactive"

When setting "explicit_refresh_rate_hints", we saw the perfetto trace is
very noisy in LayerHistory/RefreshRateSelector. This change fixes this
in a few ways:
- Non-visible layers should now be inactive in LayerHistory. This should
  be safe because non-visible layers were treated as NoVote,
  and does not affect the refresh rate chosen.
- LayerInfo for ExplicitCategory now considers NoVote (from non-visible
  layer).
- RefreshRateSelector::calculateLayerScoreLocked does not have any
  interesting trace calls itself, so remove its ATRACE_CALL.

Bug: 305008279
Test: atest libsurfaceflinger_unittest
Test: atest SetFrameRateTest
Test: perfetto trace not noisy
Change-Id: I40056ea48b8323b7be0936e7717706bf9a0926f9
parent 52a23d71
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