diff options
| author | 2024-10-21 04:27:05 +0000 | |
|---|---|---|
| committer | 2024-10-21 04:27:05 +0000 | |
| commit | 2b1a1bcc2b4954dca2a96438ea29cd9527ba286f (patch) | |
| tree | 975abe1c6035e03751706f8bc2098b54e3909f20 /libs/androidfw/StringPool.cpp | |
| parent | 7a6864f3a1dcff4b688beada30b5e17d269f58a7 (diff) | |
Skip initializing unused system bar painter
SystemBarBackgroundPainter invokes getSystemUiContext, that may trigger
initializing a window context and load resources. The operation could
cost ~5ms due to attachWindowContextToDisplayContent.
Since flag drawSnapshotAspectRatioMatch is introduced, there is no
longer a case that the snapshot starting window need to draw bars
background. So its initialization can be skipped as well.
Bug: 297502610
Flag: EXEMPT reduce unnecessary invocation
Test: Task snapshot starting window is normal from hot launch app.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7913d2598f0dcc32dce069b98de04f795ac83fc3)
Merged-In: Id6fa10da245845d5ed5f78558ab2f4193d2c7133
Change-Id: Id6fa10da245845d5ed5f78558ab2f4193d2c7133
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions