DescriptionSelect 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 #Messages
Total messages: 11 (3 generated)
|