Index: components/favicon_base/select_favicon_frames.h |
diff --git a/components/favicon_base/select_favicon_frames.h b/components/favicon_base/select_favicon_frames.h |
index 34ffef3bf8ee5611449c936dcccc0e4aeeb81af6..9c1b80e50d31eacafefc0840ad06c9f7a7fc7635 100644 |
--- a/components/favicon_base/select_favicon_frames.h |
+++ b/components/favicon_base/select_favicon_frames.h |
@@ -7,7 +7,7 @@ |
#include <vector> |
-#include "ui/base/layout.h" |
+#include "base/basictypes.h" |
class SkBitmap; |
@@ -22,24 +22,23 @@ extern const float kSelectFaviconFramesInvalidScore; |
// Takes a list of all bitmaps found in a .ico file, and creates an |
// ImageSkia that's |desired_size_in_dip| x |desired_size_in_dip| big. This |
-// function adds a representation at every desired scale factor. |
+// function adds a representation at every entry in |favicon_scales|. |
// If |desired_size_in_dip| is 0, the largest bitmap is returned unmodified. |
// |original_sizes| are the original sizes of the bitmaps. (For instance, |
// WebContents::DownloadImage() does resampling if it is passed a max size.) |
// If score is non-NULL, it receives a score between 0 (bad) and 1 (good) |
// that describes how well |bitmaps| were able to produce an image at |
-// |desired_size_in_dip| for |scale_factors|. |
+// |desired_size_in_dip| for |favicon_scales|. |
// The score is arbitrary, but it's best for exact size matches, |
// and gets worse the more resampling needs to happen. |
// If the resampling algorithm is modified, the resampling done in |
// FaviconUtil::SelectFaviconFramesFromPNGs() should probably be modified too as |
// it inspired by this method. |
-gfx::ImageSkia SelectFaviconFrames( |
- const std::vector<SkBitmap>& bitmaps, |
- const std::vector<gfx::Size>& original_sizes, |
- const std::vector<ui::ScaleFactor>& scale_factors, |
- int desired_size_in_dip, |
- float* score); |
+gfx::ImageSkia SelectFaviconFrames(const std::vector<SkBitmap>& bitmaps, |
+ const std::vector<gfx::Size>& original_sizes, |
+ const std::vector<float>& favicon_scales, |
+ int desired_size_in_dip, |
+ float* score); |
// Takes a list of the pixel sizes of a favicon's favicon bitmaps and returns |
// the indices of the best sizes to use to create an ImageSkia with |
@@ -53,10 +52,9 @@ gfx::ImageSkia SelectFaviconFrames( |
// that the index of the largest size is requested. |
// TODO(pkotwicz): Remove callers of this method for which |frame_pixel_sizes| |
// are the sizes of the favicon bitmaps after they were resized. |
-void SelectFaviconFrameIndices( |
- const std::vector<gfx::Size>& frame_pixel_sizes, |
- const std::vector<int>& desired_sizes, |
- std::vector<size_t>* best_indices, |
- float* score); |
+void SelectFaviconFrameIndices(const std::vector<gfx::Size>& frame_pixel_sizes, |
+ const std::vector<int>& desired_sizes, |
+ std::vector<size_t>* best_indices, |
+ float* score); |
#endif // COMPONENTS_FAVICON_BASE_SELECT_FAVICON_FRAMES_H_ |