Modify web app icon loading to load images for all supported scale.
Web apps usually provide multiple images with different sizes. When the system supports multiple scales, calculate the different sizes for scales and load images for all supported scales to get higher icon quality. This method is consistent with the websize icon shown on the browser tabs. Due to the different visual effects for maskable and non-maskable icons, and to keep the consistent icons from multiple monitors, check whether the maskable icon is available for all scales. If yes, use the maskable icons for all scales, otherwise, use the non-maskable icon for all scales. BUG=1083331 Change-Id: Ieca447e41780c09d5c818cda9a990899b2af74ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2362063Reviewed-by:Dominick Ng <dominickn@chromium.org> Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#799973}
Showing
Please register or sign in to comment