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

Unified Diff: chrome/browser/extensions/extension_icon_image.cc

Issue 11081007: Remove implicit flooring Scale() method from Point and Size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
Index: chrome/browser/extensions/extension_icon_image.cc
diff --git a/chrome/browser/extensions/extension_icon_image.cc b/chrome/browser/extensions/extension_icon_image.cc
index f07452afee97dfdcc84cfe18aa3e3060f0c894de..f748f2f933fbf18bc75db15cdc30f010366c050e 100644
--- a/chrome/browser/extensions/extension_icon_image.cc
+++ b/chrome/browser/extensions/extension_icon_image.cc
@@ -14,6 +14,7 @@
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia_source.h"
#include "ui/gfx/size.h"
+#include "ui/gfx/size_conversions.h"
// The ImageSkia provided by extensions::IconImage contains ImageSkiaReps that
// are computed and updated using the following algorithm (if no default icon
@@ -192,7 +193,8 @@ gfx::ImageSkiaRep IconImage::LoadImageForScaleFactor(
info_list.push_back(ImageLoadingTracker::ImageRepresentation(
resource,
ImageLoadingTracker::ImageRepresentation::ALWAYS_RESIZE,
- gfx::Size(resource_size_in_dip_, resource_size_in_dip_).Scale(scale),
+ gfx::ToFlooredSize(
+ gfx::Size(resource_size_in_dip_, resource_size_in_dip_).Scale(scale)),
scale_factor));
tracker_.LoadImages(extension_, info_list, ImageLoadingTracker::DONT_CACHE);
« no previous file with comments | « chrome/browser/chromeos/status/network_menu_icon.cc ('k') | chrome/browser/thumbnails/render_widget_snapshot_taker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698