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

Unified Diff: chrome/browser/extensions/bookmark_app_helper.cc

Issue 289283004: Add ability to constrain dominant color selection to a HSL range. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove C++11 features Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/favicon_webui_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/bookmark_app_helper.cc
diff --git a/chrome/browser/extensions/bookmark_app_helper.cc b/chrome/browser/extensions/bookmark_app_helper.cc
index 35e9fdc7c336c9845a3738df11f9ee5e1651fa57..4ef223f0e6599a4d131c96f463582a89c92cc616 100644
--- a/chrome/browser/extensions/bookmark_app_helper.cc
+++ b/chrome/browser/extensions/bookmark_app_helper.cc
@@ -276,12 +276,8 @@ void BookmarkAppHelper::OnIconsDownloaded(
SkColor background_color = SK_ColorBLACK;
if (resized_bitmaps.size()) {
color_utils::GridSampler sampler;
- background_color = color_utils::CalculateKMeanColorOfPNG(
- gfx::Image::CreateFrom1xBitmap(resized_bitmaps.begin()->second)
- .As1xPNGBytes(),
- 100,
- 568,
- &sampler);
+ background_color = color_utils::CalculateKMeanColorOfBitmap(
+ resized_bitmaps.begin()->second);
}
for (std::set<int>::const_iterator it = generate_sizes.begin();
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/favicon_webui_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698