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

Unified Diff: ui/wm/core/default_screen_position_client.cc

Issue 1417023002: Remove some implicit Point to PointF conversions, add helpers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-views: extrachange Created 5 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: ui/wm/core/default_screen_position_client.cc
diff --git a/ui/wm/core/default_screen_position_client.cc b/ui/wm/core/default_screen_position_client.cc
index c9dadc826951149ab6f1d9bc2ec7e60aea670cad..d26a91ed9c8f92c66495eab9cfc7de7e5a749d87 100644
--- a/ui/wm/core/default_screen_position_client.cc
+++ b/ui/wm/core/default_screen_position_client.cc
@@ -23,7 +23,7 @@ gfx::Point DefaultScreenPositionClient::GetOriginInScreen(
aura::Window* window = const_cast<aura::Window*>(root_window);
float scale = gfx::Screen::GetScreenFor(window)->
GetDisplayNearestWindow(window).device_scale_factor();
- return gfx::ToFlooredPoint(gfx::ScalePoint(origin_in_pixels, 1.0f / scale));
+ return gfx::ScaleToFlooredPoint(origin_in_pixels, 1.0f / scale);
}
void DefaultScreenPositionClient::ConvertPointToScreen(
« ui/gfx/geometry/point.cc ('K') | « 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