|
Retry r88137:
Add code to calculate the dominant color for a favicon.
Currently we calculate the dominant/representative color only for those favicons we need it for (i.e. the ones shown on the NTP). We don't do any caching either in memory or in the favicon db but that can be tacked on later if deemed suitable.
Code in color_analysis.* authored by dtrainor
BUG=none
TEST=trybots
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88600
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+772 lines, -5 lines) |
Patch |
 |
M |
chrome/browser/favicon/favicon_handler.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/ntp4/most_visited_page.js
|
View
|
1
2
|
6 chunks |
+26 lines, -1 line |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/webui/ntp/favicon_webui_handler.h
|
View
|
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/webui/ntp/favicon_webui_handler.cc
|
View
|
1
2
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/most_visited_handler.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
2 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/new_tab_ui.cc
|
View
|
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/color_analysis.h
|
View
|
|
1 chunk |
+112 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/color_analysis.cc
|
View
|
|
1 chunk |
+324 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/color_analysis_unittest.cc
|
View
|
1
|
1 chunk |
+180 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/ui_gfx.gypi
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/ui_unittests.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|