diff options
| author | 2025-02-26 15:53:09 +0100 | |
|---|---|---|
| committer | 2025-02-28 09:29:49 +0100 | |
| commit | b7dfe500a561892e6ff378dc278cc48dc5ecd1fb (patch) | |
| tree | 5e2f00e9e272c0daf4eaede87b8919c50c033792 /libs/androidfw/AttributeResolution.cpp | |
| parent | e18a7dcfa5d40850882a7f8eedaadfecf1da37f5 (diff) | |
Optimize Compose QS recompositions (1/2)
This CL optimizes the Compose QS recompositions by:
1. Making sure that Modifier.bounceable() and Modifier.sysuiResTag() do
not invalidate a Modifier chain whenever they are recomposed.
2. Initializing the power button by the current value it should have
rather than null. This prevents the composition of the power button
to happen on the 2nd or 3rd frame when transitioning from QQS to QS.
3. Ensuring that the brightness slider does not recompose once its icon
is available.
4. Ensuring that the build number does not recompose on 2nd or 3rd frame
by caching its last value accross recompositions in a StateFlow
inside the associated interactor.
5. Annotating a bunch of stable generic classes with @Stable.
Bug: 389985793
Test: Manual, observed the difference of recompositions in Perfetto and
go/hsv
Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Change-Id: I55186bb14630f1a41999ecc2773f6bfcf64eb05a
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions