diff options
Diffstat (limited to 'ui/compositor/dip_util.cc')
-rw-r--r-- | ui/compositor/dip_util.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/compositor/dip_util.cc b/ui/compositor/dip_util.cc index 104a5da..1f6309a 100644 --- a/ui/compositor/dip_util.cc +++ b/ui/compositor/dip_util.cc @@ -29,6 +29,11 @@ gfx::Point ConvertPointToDIP(const Layer* layer, gfx::ScalePoint(point_in_pixel, 1.0f / GetDeviceScaleFactor(layer))); } +gfx::PointF ConvertPointToDIP(const Layer* layer, + const gfx::PointF& point_in_pixel) { + return gfx::ScalePoint(point_in_pixel, 1.0f / GetDeviceScaleFactor(layer)); +} + gfx::Size ConvertSizeToDIP(const Layer* layer, const gfx::Size& size_in_pixel) { return gfx::ToFlooredSize( |