CrOS: Create function for generating standard icons.
This CL creates the function CreateStandardIconImage() to be used for taking the original icon and returning a standard icon. The general idea of the new function is as follows: 1. Check if the original icon is already circle shaped. If it is, then return the original icon. 2. Find the scale required to resize and fit the original icon inside of a new circle background. 3. Scale down the icon and draw it over a background circle. Return this icon as the generated standard icon. Bug: 1110496 Change-Id: If37fba67a3f937f863c0df2600979fc0e0d02512 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2300225Reviewed-by:Nancy Wang <nancylingwang@chromium.org> Commit-Queue: Matthew Mourgos <mmourgos@chromium.org> Cr-Commit-Position: refs/heads/master@{#793529}
Showing
This diff is collapsed.
Please register or sign in to comment