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

Unified Diff: extensions/browser/extension_icon_image.cc

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-gfx: . Created 5 years, 3 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
« no previous file with comments | « extensions/browser/api/capture_web_contents_function.cc ('k') | media/blink/skcanvas_video_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_icon_image.cc
diff --git a/extensions/browser/extension_icon_image.cc b/extensions/browser/extension_icon_image.cc
index 023879f10cb562925b5f1cb5f5186a7bb69fcf55..c0ab8d5d6cd7ff38cb3d8690e0a37322ffa62c1f 100644
--- a/extensions/browser/extension_icon_image.cc
+++ b/extensions/browser/extension_icon_image.cc
@@ -196,10 +196,9 @@ gfx::ImageSkiaRep IconImage::LoadImageForScaleFactor(
std::vector<ImageLoader::ImageRepresentation> info_list;
info_list.push_back(ImageLoader::ImageRepresentation(
- resource,
- ImageLoader::ImageRepresentation::ALWAYS_RESIZE,
- gfx::ToFlooredSize(gfx::ScaleSize(
- gfx::Size(resource_size_in_dip_, resource_size_in_dip_), scale)),
+ resource, ImageLoader::ImageRepresentation::ALWAYS_RESIZE,
+ gfx::ScaleToFlooredSize(
+ gfx::Size(resource_size_in_dip_, resource_size_in_dip_), scale),
scale_factor));
extensions::ImageLoader* loader =
« no previous file with comments | « extensions/browser/api/capture_web_contents_function.cc ('k') | media/blink/skcanvas_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698