Pick right icon based on display size.
Developers can provide multiple icons through BackgroundFetchOptions. We calculate an Icon Score for each, and pick the icon with the highest score to show with the UI. Scoring is a combination of size score (the image closest in size to the ideal display size gets the highest score) and an aspect ratio score (the image closest to a square shape gets the highest score). Design doc here: https://docs.google.com/document/d/1rEhpXios2wkeePHm6NfHzplESecn0-zQ2XBVjP7ykOk/edit# TBR=peter@chromium.org Bug: 813564 Change-Id: I4b74bc0db06a71ca276e98659ee1b2148358e1e7 Reviewed-on: https://chromium-review.googlesource.com/986265 Commit-Queue: Mugdha Lakhani <nator@chromium.org> Reviewed-by:Dan Elphick <delphick@chromium.org> Cr-Commit-Position: refs/heads/master@{#548867}
Showing
Please register or sign in to comment