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

Unified Diff: components/favicon_base/favicon_util.h

Issue 2347173002: Extend FaviconService to support fetching favicons from a Google server (Closed)
Patch Set: Requiring minimum_size Created 4 years 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..b1dd6d629f4defc89c601c16dc6fdc4731e10d87 100644
--- a/components/favicon_base/favicon_util.h
+++ b/components/favicon_base/favicon_util.h
@@ -45,6 +45,15 @@ favicon_base::FaviconRawBitmapResult ResizeFaviconBitmapResult(
favicon_bitmap_results,
int desired_size_in_pixel);
-} // namspace favicon_base
+// Returns a resampled bitmap of |desired_size| x |desired_size| by resampling
+// the best bitmap out of |input_bitmaps|.
+// ResizeBitmapByDownsamplingIfPossible() is similar to SelectFaviconFrames()
+// but it operates on bitmaps which have already been resampled via
+// SelectFaviconFrames().
+SkBitmap ResizeBitmapByDownsamplingIfPossible(
+ const std::vector<SkBitmap>& input_bitmaps,
+ int desired_size);
+
+} // namespace favicon_base
#endif // COMPONENTS_FAVICON_BASE_FAVICON_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698