commit | 6fc1d4e8e6549b0d58ea23b4dd3f26329ec19f38 | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Wed May 08 16:43:58 2013 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Thu May 09 14:44:38 2013 -0700 |
tree | ed2e6217249eb1305202fcbbecbb67c55c5f4e9e | |
parent | e2322bdd7865552aa31f93bbf4e60d4d9a7d0973 [diff] |
Cache the scaled avatar drawables in the keyguard user switcher Loading the avatar icons and drawing them into the sized bitmap turns out to be quite expensive and the cost increases with number of users. Caching them shaves off several hundred milliseconds from Keyguard inflation time during user switching on the lockscreen. For instance, 15ms vs. 750ms with 3 avatars on a certain 7" tablet. Bug: 7986933 Change-Id: I3e2065bfa25aa263133ba204ca364c3b04d7c0ff