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

Unified Diff: ash/drag_drop/drag_image_view.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 | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/touch/touch_transformer_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/drag_drop/drag_image_view.cc
diff --git a/ash/drag_drop/drag_image_view.cc b/ash/drag_drop/drag_image_view.cc
index 53f5094cdf4d794b789d88a5e7ec484870bc38e8..e180d9395163f47e9a5310e3347f0711aa1b5c55 100644
--- a/ash/drag_drop/drag_image_view.cc
+++ b/ash/drag_drop/drag_image_view.cc
@@ -117,8 +117,8 @@ void DragImageView::OnPaint(gfx::Canvas* canvas) {
}
// The drag image already has device scale factor applied. But
// |widget_size_| is in DIP units.
- gfx::Size scaled_widget_size = gfx::ToRoundedSize(
- gfx::ScaleSize(widget_size_, device_scale));
+ gfx::Size scaled_widget_size =
+ gfx::ScaleToRoundedSize(widget_size_, device_scale);
gfx::ImageSkiaRep image_rep = GetImage().GetRepresentation(device_scale);
if (image_rep.is_null())
return;
« no previous file with comments | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/touch/touch_transformer_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698