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

Unified Diff: components/favicon_base/favicon_util.h

Issue 2347173002: Extend FaviconService to support fetching favicons from a Google server (Closed)
Patch Set: Peter's comments #2 Created 3 years, 10 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..84738b82266b384f7422b0885a046f1cb1529b1b 100644
--- a/components/favicon_base/favicon_util.h
+++ b/components/favicon_base/favicon_util.h
@@ -45,6 +45,14 @@ 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