commit | 9d1ce22f88ab653e79837f154abc52792375ba30 | [log] [tgz] |
---|---|---|
author | wilsonshih <wilsonshih@google.com> | Fri Mar 12 18:16:00 2021 +0800 |
committer | wilsonshih <wilsonshih@google.com> | Mon Mar 22 14:54:31 2021 +0800 |
tree | df566ff1b1b7712d0427d21f1d318b2a971c4b76 | |
parent | f505c5d215d8e8511b4034362ac6de99ee66a299 [diff] |
Pre-draw AdaptiveIconDrawable and cache it before doFrame The AdaptiveIconDrawable can spend much time which will impact the time for first window drawn. But usually there is a small time between setContentView to doFrame, we can use this gap to pre-draw the AdaptiveIconDrawable and cache it since we already know the size and it won't change anymore. Bug: 173975965 Test: atest StartingSurfaceDrawerTests SplashscreenTests Change-Id: I759de2e1b4025dd150532f3fd5c67d1b404f56a0