Resolve the Arc icons pixelated issue.
Some Arc app icons are pixelated, e.g. spotify. The reasons is the background/foreground icon image fetched from the Arc side is pixelated. The Arc side cl:12384305 modifies the Arc side implementation to fetch the high quality raw icon foreground/background image: https://googleplex-android-review.git.corp.google.com/c/platform/vendor/google_arc/+/12384305 This CL implements the chromium side change to generate the adaptive icon in Chrome OS. 1. The raw foreground/background icon size is not the requested icon size. So modify ArcAppIcon, adding a flag, extract_subset_allowed_, to allow other size image to be forwarded to AppService for the foreground/background image. (Note: Arc default app icons may have different size background/foreground as well, but the case should be rare, because we just enable the flag for 1 week. Also most time the default app icons should match the size. If there are cases that the current Canary release is updated, and the default add icons are wrong due to the migration from last 1 week version, we can suggest disable/enable the Arc play store to refresh to the new image size.) 2. Modify AppService Arc icon handling to generate the adaptive icon using the raw background/foreground icon images. The Arc raw background/foreground image has padding for all 4 sides. So if the foreground/background icon image doesn't match the requested size, chop paddings and resize image_rep to the appropriate size. Then combine the foreground/background images, and apply the mask. This CL and the Arc side cl:12384305 work together to resolve the Arc app icons pixelated issue. This CL should be submitted first, and this CL is backward compatible. BUG=1114771 Change-Id: I70af928f5b6c81c28f71c54efa102b7b1c617a0e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359311 Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Reviewed-by:Long Cheng <lgcheng@google.com> Reviewed-by:
Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#798806}
Showing
Please register or sign in to comment