diff options
-rw-r--r-- | chrome/browser/favicon/select_favicon_frames.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/favicon/select_favicon_frames.cc b/chrome/browser/favicon/select_favicon_frames.cc index 605ba69..f06c2c9 100644 --- a/chrome/browser/favicon/select_favicon_frames.cc +++ b/chrome/browser/favicon/select_favicon_frames.cc @@ -24,7 +24,9 @@ size_t BiggestCandidate(const std::vector<SkBitmap>& bitmaps) { return max_index; } -SkBitmap PadWithBorder(SkBitmap contents, int desired_size, int source_size) { +SkBitmap PadWithBorder(const SkBitmap& contents, + int desired_size, + int source_size) { SkBitmap bitmap; bitmap.setConfig( SkBitmap::kARGB_8888_Config, desired_size, desired_size); @@ -41,7 +43,7 @@ SkBitmap PadWithBorder(SkBitmap contents, int desired_size, int source_size) { return bitmap; } -SkBitmap SampleNearestNeighbor(SkBitmap contents, int desired_size) { +SkBitmap SampleNearestNeighbor(const SkBitmap& contents, int desired_size) { SkBitmap bitmap; bitmap.setConfig( SkBitmap::kARGB_8888_Config, desired_size, desired_size); |