diff options
| author | 2024-12-10 23:17:59 +0000 | |
|---|---|---|
| committer | 2024-12-11 22:26:35 +0000 | |
| commit | 1efe85914b07decb40c04b3a124d43d996ba41d9 (patch) | |
| tree | 065bd83b6c93a4a87035c028c21cb98978899d99 /libs/androidfw/AttributeResolution.cpp | |
| parent | 707783874e51f50a8beea1d4d686f6991306a394 (diff) | |
Lazily inflate the maximize button's progress bar
The progress bar behind the header's maximize button is only needed when
the user hovers over the button, yet it takes 1ms to inflate it in the
shell.main thread in the middle of transition dispatching, which causes
latency.
This change replaces it with a ViewStub that waits to inflate the real
progress bar until it is actually needed.
Bug: 360452034
Flag: com.android.window.flags.enable_desktop_windowing_mode
Test: verify in perfetto that ProgressBar inflation is down to ~35us
Change-Id: I7137b5886a4f012ac80215082a4452ef435ec37b
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions