diff options
author | 2024-12-19 17:53:13 -0800 | |
---|---|---|
committer | 2024-12-19 21:27:18 -0800 | |
commit | 2f271fe46646971c66beb6f0ea906a2c771b6a1c (patch) | |
tree | 1468731ad67991c6a2915e96c59752a6f555264c /libs/androidfw/misc.cpp | |
parent | 84f0758b9521255a5e55cb7dc1f98b5a009d1c57 (diff) |
[res] Don't create extra asset provider when not needed
MultiAssetsProvider is useful to combine a ResourcesLoader with
a file-based provider, but most of the time it's used without
any loaders, and ends up with an EmptyAssetsProvider object that
just wastes cycles and RAM.
This CL optimizes that out, only creating the extra layer when
we have a real loader, and falling back to the only remaining
provider otherwise
Bug: 319137634
Test: build + boot + manual + atest libandroidfw_tests
Flag: EXEMPT optimization
Change-Id: Ibc5ac60adc5e008b70a62481a747758c89083ff9
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions