[Android WebAPK] Don't inflate splash icon if we don't use it
New-style WebAPKs use splash screen screenshot from the WebAPK content provider and don't use WebApkInfo#splashIcon(). This CL introduces WebappLazyIcon which postpones reading the bitmap from resources till WebappLazyIcon#bitmap() is called. This CL improves startup on an Android One device by ~20ms. BUG=995168 Change-Id: I013afadb1a781837830fe1d2ff5ade56fbf83dec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1759296 Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org> Reviewed-by:Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#689465}
Showing
Please register or sign in to comment