From 2771b1c10df9718860f95e8674914d9e0b490a06 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Wed, 31 Oct 2012 05:15:43 +0000 Subject: ui: Remove implicit flooring from Point3f and rename the class to Point3F The Point3F::AsPoint() method converts from float to integer by doing an implicit floor() on the values. Instead, we should have AsPointF() return floating point values, and use the ToFlooredPoint() conversion method to explicitly floor the values at the call-site if desired. Also, move the point3.h header to point3_f.h so that it is consistent with other geometry header file namings. BUG=147395 R=sky Review URL: https://chromiumcodereview.appspot.com/11301043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165102 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/base/animation/tween.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/base/animation') diff --git a/ui/base/animation/tween.cc b/ui/base/animation/tween.cc index 3c81ca1..a67ab56 100644 --- a/ui/base/animation/tween.cc +++ b/ui/base/animation/tween.cc @@ -107,7 +107,7 @@ gfx::Transform Tween::ValueBetween(double value, gfx::Transform to_return; gfx::Point start_translation, end_translation; float start_rotation, end_rotation; - gfx::Point3f start_scale, end_scale; + gfx::Point3F start_scale, end_scale; if (InterpolatedTransform::FactorTRS(start_transform, &start_translation, &start_rotation, -- cgit v1.1