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

Unified Diff: chrome/browser/ui/views/tabs/window_finder_x11.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-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
Index: chrome/browser/ui/views/tabs/window_finder_x11.cc
diff --git a/chrome/browser/ui/views/tabs/window_finder_x11.cc b/chrome/browser/ui/views/tabs/window_finder_x11.cc
index db7a4cc2527594ac7c3a0dbe90b236fde942d06d..18c9c025b5f94dd9a5ff2daf1fb9e9210a987839 100644
--- a/chrome/browser/ui/views/tabs/window_finder_x11.cc
+++ b/chrome/browser/ui/views/tabs/window_finder_x11.cc
@@ -16,7 +16,7 @@ float GetDeviceScaleFactor() {
}
gfx::Point DIPToPixelPoint(const gfx::Point& dip_point) {
- return ToFlooredPoint(gfx::ScalePoint(dip_point, GetDeviceScaleFactor()));
+ return gfx::ScaleToFlooredPoint(dip_point, GetDeviceScaleFactor());
}
} // anonymous namespace

Powered by Google App Engine
This is Rietveld 408576698