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

Unified Diff: ui/wm/core/image_grid.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 | « ui/views/widget/desktop_aura/desktop_screen_x11.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/image_grid.cc
diff --git a/ui/wm/core/image_grid.cc b/ui/wm/core/image_grid.cc
index 700deb90362026d70d6127a94243c4abeac29458..553e442d50bcbd87d9f51b331f663f23911e4364 100644
--- a/ui/wm/core/image_grid.cc
+++ b/ui/wm/core/image_grid.cc
@@ -146,8 +146,8 @@ void ImageGrid::SetSize(const gfx::Size& size) {
// At non-integer scale factors, the ratio of dimensions in DIP is not
// necessarily the same as the ratio in physical pixels due to rounding. Set
// the transform on each of the layers based on dimensions in pixels.
- gfx::Size center_size_in_pixels = gfx::ToFlooredSize(gfx::ScaleSize(
- gfx::Size(center_width, center_height), layer_->device_scale_factor()));
+ gfx::Size center_size_in_pixels = gfx::ScaleToFlooredSize(
+ gfx::Size(center_width, center_height), layer_->device_scale_factor());
if (top_layer_.get()) {
if (center_width > 0) {
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_screen_x11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698