Chromium Code Reviews| 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..4ef1355d1c48efee272c5cbb2ae80b695f30fbf3 100644 |
| --- a/components/favicon_base/select_favicon_frames.h |
| +++ b/components/favicon_base/select_favicon_frames.h |
| @@ -7,8 +7,6 @@ |
| #include <vector> |
| -#include "ui/base/layout.h" |
| - |
| class SkBitmap; |
| namespace gfx { |
| @@ -22,24 +20,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 desired scales. |
|
pkotwicz
2014/06/20 00:35:41
Nit: "at every desired scales" -> "for each entry
oshima
2014/06/20 04:16:34
Done.
|
| // 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 +50,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_ |