| Index: ui/base/win/dpi.cc
|
| diff --git a/ui/base/win/dpi.cc b/ui/base/win/dpi.cc
|
| index 75d63bba3d48935827702617c54e05deb0f06e18..35b166f5848d3de2e8702b6ff32755dcdc424f1d 100644
|
| --- a/ui/base/win/dpi.cc
|
| +++ b/ui/base/win/dpi.cc
|
| @@ -93,6 +93,11 @@ gfx::Point ScreenToDIPPoint(const gfx::Point& pixel_point) {
|
| gfx::ScalePoint(pixel_point, 1.0f / GetDeviceScaleFactor()));
|
| }
|
|
|
| +gfx::Point DIPToScreenPoint(const gfx::Point& dip_point) {
|
| + return gfx::ToFlooredPoint(
|
| + gfx::ScalePoint(dip_point, GetDeviceScaleFactor()));
|
| +}
|
| +
|
| gfx::Rect ScreenToDIPRect(const gfx::Rect& pixel_bounds) {
|
| // TODO(kevers): Switch to non-deprecated method for float to int conversions.
|
| return gfx::ToFlooredRectDeprecated(
|
|
|