Chromium Code Reviews
Description[Media>UI] Don't scale the icon if it's smaller than the ideal size
Previously we scale favicons or media artwork images to the ideal
size regardless of their original size. This increases the memory
usage as we create another copy of the original image and the
size will also be increased if the original image size is smaller
than the ideal size.
In this CL, if the original image size is smaller than the ideal
size, we will reuse the original image and won't scale it
anymore.
BUG=682701
Review-Url: https://codereview.chromium.org/2641133004
Cr-Commit-Position: refs/heads/master@{#445147}
Committed: https://chromium.googlesource.com/chromium/src/+/c3a579962e733b26ef12f564732260844d558a56
Patch Set 1 #
Total comments: 3
Patch Set 2 : addressed avayvod's comments #
Messages
Total messages: 21 (12 generated)
|
||||||||||||||||||||||||||||