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

Unified Diff: ui/gfx/win/dpi.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/gfx/win/dpi.cc
diff --git a/ui/gfx/win/dpi.cc b/ui/gfx/win/dpi.cc
index 508a2c776c3d49542eada9b76cd8aca48adcc6a7..c0c44d612b80a91e736f6d9eedcd2ba2a7a33fb3 100644
--- a/ui/gfx/win/dpi.cc
+++ b/ui/gfx/win/dpi.cc
@@ -67,11 +67,11 @@ float GetDPIScale() {
namespace win {
Point ScreenToDIPPoint(const Point& pixel_point) {
- return ToFlooredPoint(ScalePoint(pixel_point, 1.0f / GetDPIScale()));
+ return ScaleToFlooredPoint(pixel_point, 1.0f / GetDPIScale());
}
Point DIPToScreenPoint(const Point& dip_point) {
- return ToFlooredPoint(ScalePoint(dip_point, GetDPIScale()));
+ return ScaleToFlooredPoint(dip_point, GetDPIScale());
}
Rect ScreenToDIPRect(const Rect& pixel_bounds) {

Powered by Google App Engine
This is Rietveld 408576698