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

Unified Diff: components/favicon_base/favicon_util.h

Issue 2739173002: Always select best favicon bitmap (Closed)
Patch Set: WIP. Created 3 years, 9 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
Index: components/favicon_base/favicon_util.h
diff --git a/components/favicon_base/favicon_util.h b/components/favicon_base/favicon_util.h
index 088b471c47dabfb4d8462a95ae3bdcd2ec4d8064..f5c2cae8fe808602025d8333045804ade6536025 100644
--- a/components/favicon_base/favicon_util.h
+++ b/components/favicon_base/favicon_util.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_FAVICON_BASE_FAVICON_UTIL_H_
#define COMPONENTS_FAVICON_BASE_FAVICON_UTIL_H_
+#include <map>
#include <vector>
#include "components/favicon_base/favicon_types.h"
@@ -36,6 +37,10 @@ gfx::Image SelectFaviconFramesFromPNGs(
const std::vector<float>& favicon_scales,
int favicon_size);
+gfx::Image SelectFaviconFramesForPixelSizesFromPNGs(
+ const std::vector<favicon_base::FaviconRawBitmapResult>& png_data,
+ const std::map<int, float>& desired_pixel_sizes);
+
// Generates a favicon_bitmap_result sized exactly to [desired_size,
// desired_size] from the provided result set. If the exact size is found in
// the set, it just returns that; otherwise, it will decode the PNG, scale,

Powered by Google App Engine
This is Rietveld 408576698