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

Unified Diff: ui/compositor/dip_util.cc

Issue 11316014: Full Screen Magnifier: (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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/compositor/dip_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/dip_util.cc
diff --git a/ui/compositor/dip_util.cc b/ui/compositor/dip_util.cc
index 104a5da4d99525bf3278ab58b95c4a7596cc8690..1f6309a42b570df9e902a0f00277e071b776e219 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(
« no previous file with comments | « ui/compositor/dip_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698