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

Unified Diff: win8/metro_driver/chrome_app_view_ash.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-event: mandol_line Created 5 years, 1 month 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_window_tree_host_x11.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/chrome_app_view_ash.cc
diff --git a/win8/metro_driver/chrome_app_view_ash.cc b/win8/metro_driver/chrome_app_view_ash.cc
index 55335a44a2d2f83cb7c557bf7fb824968d400ddb..15158ddf06b90bbf1fa9509c666c4b12c141acca 100644
--- a/win8/metro_driver/chrome_app_view_ash.cc
+++ b/win8/metro_driver/chrome_app_view_ash.cc
@@ -388,10 +388,9 @@ class ChromeAppViewAsh::PointerInfoHandler {
// via the win32 scale factor which achieves the needful.
gfx::Point dip_point_metro(point.X, point.Y);
gfx::Point scaled_point_metro =
- gfx::ToCeiledPoint(gfx::ScalePoint(dip_point_metro, metro_dpi_scale_));
+ gfx::ScaleToCeiledPoint(dip_point_metro, metro_dpi_scale_);
gfx::Point dip_point_win32 =
- gfx::ToCeiledPoint(gfx::ScalePoint(scaled_point_metro,
- 1.0 / win32_dpi_scale_));
+ gfx::ScaleToCeiledPoint(scaled_point_metro, 1.0 / win32_dpi_scale_);
x_ = dip_point_win32.x();
y_ = dip_point_win32.y();
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698