From faf56350461211be7de324e5514e8c8119b2047f Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Fri, 9 Nov 2012 21:44:13 +0000 Subject: ui: Make gfx::Point::Scale() mutate the class, similar to gfx::Rect. We add gfx::ScalePoint() as a non-mutating version of the Scale method. Tests: ui_unittests:PointTest.Scale R=sky BUG=160158 Review URL: https://codereview.chromium.org/11369144 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166979 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/touch/touch_uma.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ash/touch') diff --git a/ash/touch/touch_uma.cc b/ash/touch/touch_uma.cc index a9ca319..d8117b6 100644 --- a/ash/touch/touch_uma.cc +++ b/ash/touch/touch_uma.cc @@ -318,7 +318,7 @@ void TouchUMA::RecordTouchEvent(aura::Window* target, position = ui::EventLocationFromNative(event.native_event()); #endif position = gfx::ToFlooredPoint( - position.Scale(1. / target->layer()->device_scale_factor())); + gfx::ScalePoint(position, 1. / target->layer()->device_scale_factor())); } position.set_x(std::min(bounds.width() - 1, std::max(0, position.x()))); -- cgit v1.1