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

Unified Diff: ui/gfx/screen_android.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/gfx/render_text.cc ('k') | ui/gfx/win/dpi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen_android.cc
diff --git a/ui/gfx/screen_android.cc b/ui/gfx/screen_android.cc
index c286e603f2d8b621662a47f7cce4a0755cbd92a0..2459079b274d5a59f3b8fc72d492b746020809ea 100644
--- a/ui/gfx/screen_android.cc
+++ b/ui/gfx/screen_android.cc
@@ -40,9 +40,8 @@ class ScreenAndroid : public Screen {
device_info.GetPhysicalDisplayHeight()
? device_info.GetPhysicalDisplayHeight()
: device_info.GetDisplayHeight());
- const gfx::Rect bounds_in_dip =
- gfx::Rect(gfx::ToCeiledSize(gfx::ScaleSize(
- bounds_in_pixels.size(), 1.0f / device_scale_factor)));
+ const gfx::Rect bounds_in_dip = gfx::Rect(gfx::ScaleToCeiledSize(
+ bounds_in_pixels.size(), 1.0f / device_scale_factor));
gfx::Display display(0, bounds_in_dip);
if (!gfx::Display::HasForceDeviceScaleFactor())
display.set_device_scale_factor(device_scale_factor);
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/gfx/win/dpi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698