Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Issue 2641133004: [Media>UI] Don't scale the icon if it's smaller than the ideal size (Closed)

Created:
3 years, 11 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 11 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -6 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java View 1 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
Zhiqiang Zhang (Slow)
3 years, 11 months ago (2017-01-20 13:58:24 UTC) #2
whywhat
I'm a little confused by the change description. It indicates two problems: 1. we scale ...
3 years, 11 months ago (2017-01-20 15:43:23 UTC) #4
whywhat
https://codereview.chromium.org/2641133004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java File chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java (right): https://codereview.chromium.org/2641133004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java#newcode492 chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java:492: public static Bitmap scaleIconForDisplayIfNeeded(@Nullable Bitmap icon) { On 2017/01/20 ...
3 years, 11 months ago (2017-01-20 15:44:12 UTC) #5
Zhiqiang Zhang (Slow)
PTAL, changed method name and updated the CL description. For Favicon, I think we are ...
3 years, 11 months ago (2017-01-20 16:53:35 UTC) #7
whywhat
lgtm
3 years, 11 months ago (2017-01-20 17:25:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641133004/20001
3 years, 11 months ago (2017-01-20 17:55:13 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/346513)
3 years, 11 months ago (2017-01-20 17:56:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641133004/20001
3 years, 11 months ago (2017-01-20 20:26:31 UTC) #18
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 20:33:41 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/c3a579962e733b26ef12f5647322...

Powered by Google App Engine
This is Rietveld 408576698