diff options
| author | 2023-06-17 20:15:07 +0800 | |
|---|---|---|
| committer | 2023-06-17 13:53:23 +0000 | |
| commit | 8c0a1a6ecec5b1951d9d18f662da7c16bb859df1 (patch) | |
| tree | 35722d9a3d44228c56426f295eea0557122a213a /libs/androidfw/FileStream.cpp | |
| parent | 2c270dd7a432fb3237b9bd354e3911f1e0df2bfd (diff) | |
Reduce unnecessary context creation for display
Previously, getMinimalTaskSizeDp can be called twice for a display
rotation change, which may add 2~4ms latency.
Since per-display Resources is available, it can use directly
without creation. Also move the invocation to onConfigurationChanged
because display info change doesn't mean it will affect the result
of a resource.
Bug: 253610885
Test: DisplayContentTests#testSetForcedDensity
Change-Id: Iefc3af1eae55c6c4b8951124f104b81f5be3867f
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions