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

Side by Side Diff: components/favicon_base/favicon_util.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/favicon_base/favicon_util.h" 5 #include "components/favicon_base/favicon_util.h"
6 6
7 #include <stddef.h>
8
7 #include <cmath> 9 #include <cmath>
8 10
11 #include "build/build_config.h"
9 #include "components/favicon_base/favicon_types.h" 12 #include "components/favicon_base/favicon_types.h"
10 #include "components/favicon_base/select_favicon_frames.h" 13 #include "components/favicon_base/select_favicon_frames.h"
11 #include "skia/ext/image_operations.h" 14 #include "skia/ext/image_operations.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 15 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "third_party/skia/include/core/SkCanvas.h" 16 #include "third_party/skia/include/core/SkCanvas.h"
14 #include "ui/base/layout.h" 17 #include "ui/base/layout.h"
15 #include "ui/gfx/codec/png_codec.h" 18 #include "ui/gfx/codec/png_codec.h"
16 #include "ui/gfx/favicon_size.h" 19 #include "ui/gfx/favicon_size.h"
17 #include "ui/gfx/geometry/size.h" 20 #include "ui/gfx/geometry/size.h"
18 #include "ui/gfx/image/image_png_rep.h" 21 #include "ui/gfx/image/image_png_rep.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 &png_bytes->data())) { 238 &png_bytes->data())) {
236 png_reps.push_back( 239 png_reps.push_back(
237 gfx::ImagePNGRep(png_bytes, resized_image_skia_reps[i].scale())); 240 gfx::ImagePNGRep(png_bytes, resized_image_skia_reps[i].scale()));
238 } 241 }
239 } 242 }
240 243
241 return gfx::Image(png_reps); 244 return gfx::Image(png_reps);
242 } 245 }
243 246
244 } // namespace favicon_base 247 } // namespace favicon_base
OLDNEW
« no previous file with comments | « components/favicon_base/favicon_url_parser_unittest.cc ('k') | components/favicon_base/large_icon_url_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698