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

Issue 1382343002: Select dark colors for generating fallback icon if possible. (Closed)

Created:
5 years, 2 months ago by mpawlowski
Modified:
5 years, 2 months ago
Reviewers:
pkotwicz, sky, stevenjb
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Select dark colors for generating fallback icon if possible. When trying to establish the background color for the fallback icon, we select the dominant color of a site's favicon and clamp its luminosity so that we don't end up with a very light background and white text. If the favicon has a lot of white and a bit of blue, the algorithm returns white which we clamp down to grey. Instead, we should have used the blue. We can force the algorithm to return blue by specifying the upper bound of the dominant color we'd like to receive. We still need to clamp the result because the source image may actually not have any dark colors, in which case the algorithm will ignore the upper bound. BUG=539771 Committed: https://crrev.com/a6da3b567a399861eeced15fe989a6b5acbab91c Cr-Commit-Position: refs/heads/master@{#352798}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Constant for min background luminance #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M components/favicon_base/fallback_icon_style.cc View 1 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
mpawlowski
5 years, 2 months ago (2015-10-05 07:23:10 UTC) #2
pkotwicz
LGTM assuming that you have tested this. I can send you the favicons of the ...
5 years, 2 months ago (2015-10-05 14:23:28 UTC) #3
mpawlowski
On 2015/10/05 14:23:28, pkotwicz wrote: > LGTM assuming that you have tested this. > > ...
5 years, 2 months ago (2015-10-05 14:27:50 UTC) #4
mpawlowski
https://codereview.chromium.org/1382343002/diff/1/components/favicon_base/fallback_icon_style.cc File components/favicon_base/fallback_icon_style.cc (right): https://codereview.chromium.org/1382343002/diff/1/components/favicon_base/fallback_icon_style.cc#newcode68 components/favicon_base/fallback_icon_style.cc:68: const color_utils::HSL lower_bound{-1.0, -1.0, 0.15}; On 2015/10/05 14:23:27, pkotwicz ...
5 years, 2 months ago (2015-10-05 14:28:26 UTC) #5
pkotwicz
Can you add a Bug Id to this CL? https://codereview.chromium.org/1382343002/diff/1/components/favicon_base/fallback_icon_style.cc File components/favicon_base/fallback_icon_style.cc (right): https://codereview.chromium.org/1382343002/diff/1/components/favicon_base/fallback_icon_style.cc#newcode68 components/favicon_base/fallback_icon_style.cc:68: ...
5 years, 2 months ago (2015-10-05 14:46:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1382343002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1382343002/20001
5 years, 2 months ago (2015-10-07 07:24:54 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-07 08:13:38 UTC) #10
commit-bot: I haz the power
5 years, 2 months ago (2015-10-07 08:14:37 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a6da3b567a399861eeced15fe989a6b5acbab91c
Cr-Commit-Position: refs/heads/master@{#352798}

Powered by Google App Engine
This is Rietveld 408576698