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

Issue 7262024: Interpolated transforms (Closed)

Created:
9 years, 6 months ago by Ian Vollick
Modified:
9 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Added interpolated transforms Landed @ 91145 BUG= TEST=ui_unittests

Patch Set 1 #

Patch Set 2 : Fixed unittest typo; use ui::Tween; Lerp => ValueBetween #

Total comments: 4

Patch Set 3 : fixed typo; use '<' rather than '<=' #

Patch Set 4 : Added more error checking to InterpolatedTransform::ValueBetween #

Patch Set 5 : Added more NaN checks and comments. #

Total comments: 19

Patch Set 6 : Formatting fixes; more comments. #

Total comments: 6

Patch Set 7 : \in => in, \\TODO => \\ TODO, made const fields const #

Patch Set 8 : Added OVERRIDE #

Patch Set 9 : Gardened patch. Not sure if it had an effect. #

Patch Set 10 : gardened patch again (rev 90842) #

Patch Set 11 : Avoid truncating double to float #

Patch Set 12 : Gardened patch #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, -0 lines) Patch
A ui/gfx/interpolated_transform.h View 1 2 3 4 5 6 7 1 chunk +195 lines, -0 lines 0 comments Download
A ui/gfx/interpolated_transform.cc View 1 2 3 4 5 6 1 chunk +219 lines, -0 lines 0 comments Download
A ui/gfx/interpolated_transform_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +112 lines, -0 lines 1 comment Download
M ui/ui_gfx.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ui_unittests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Ian Vollick
9 years, 6 months ago (2011-06-27 18:45:28 UTC) #1
wjmaclean
Minor nits, toherwise LGTM http://codereview.chromium.org/7262024/diff/2001/ui/gfx/interpolated_transform.cc File ui/gfx/interpolated_transform.cc (right): http://codereview.chromium.org/7262024/diff/2001/ui/gfx/interpolated_transform.cc#newcode22 ui/gfx/interpolated_transform.cc:22: end_time_(end_time) { DCHECK(end_time > start_time) ...
9 years, 6 months ago (2011-06-27 19:13:17 UTC) #2
Ian Vollick
On 2011/06/27 19:13:17, wjmaclean wrote: > Minor nits, toherwise LGTM > > http://codereview.chromium.org/7262024/diff/2001/ui/gfx/interpolated_transform.cc http://codereview.chromium.org/7262024/diff/2001/ui/gfx/interpolated_transform.cc#newcode22 > ...
9 years, 6 months ago (2011-06-27 19:48:48 UTC) #3
wjmaclean
On 2011/06/27 19:48:48, vollick wrote: > On 2011/06/27 19:13:17, wjmaclean wrote: > > Minor nits, ...
9 years, 6 months ago (2011-06-27 20:05:46 UTC) #4
Ian Vollick
> http://codereview.chromium.org/7262024/diff/2001/ui/gfx/interpolated_transform.cc#newcode22 > > > ui/gfx/interpolated_transform.cc:22: end_time_(end_time) { > > > DCHECK(end_time > start_time) > ...
9 years, 6 months ago (2011-06-27 20:19:03 UTC) #5
Ian Vollick
+sky
9 years, 5 months ago (2011-06-28 13:07:22 UTC) #6
sky
http://codereview.chromium.org/7262024/diff/7002/ui/gfx/interpolated_transform.cc File ui/gfx/interpolated_transform.cc (right): http://codereview.chromium.org/7262024/diff/7002/ui/gfx/interpolated_transform.cc#newcode17 ui/gfx/interpolated_transform.cc:17: : start_time_(0.0f), nit: 4 space indent (same comment for ...
9 years, 5 months ago (2011-06-28 15:39:14 UTC) #7
Ian Vollick
Summary: - Added description of all classes and the functions in the base class. - ...
9 years, 5 months ago (2011-06-28 18:06:06 UTC) #8
sky
LGTM http://codereview.chromium.org/7262024/diff/9009/ui/gfx/interpolated_transform.cc File ui/gfx/interpolated_transform.cc (right): http://codereview.chromium.org/7262024/diff/9009/ui/gfx/interpolated_transform.cc#newcode148 ui/gfx/interpolated_transform.cc:148: //TODO(vollick) 3d xforms. nit: '//TODO' -> '// TODO' ...
9 years, 5 months ago (2011-06-28 18:43:46 UTC) #9
Paweł Hajdan Jr.
9 years, 5 months ago (2011-07-18 23:14:18 UTC) #10
Drive-by (chrome/test/OWNERS, returning from vacation).

http://codereview.chromium.org/7262024/diff/11001/ui/gfx/interpolated_transfo...
File ui/gfx/interpolated_transform_unittest.cc (right):

http://codereview.chromium.org/7262024/diff/11001/ui/gfx/interpolated_transfo...
ui/gfx/interpolated_transform_unittest.cc:14: bool ApproximatelyEqual(float lhs,
float rhs) {
Did you possibly just want
http://code.google.com/p/googletest/wiki/V1_6_AdvancedGuide#Floating-Point_Co...
?

That could help you avoid re-inventing the wheel. Could you please do a
follow-up CL?

Powered by Google App Engine
This is Rietveld 408576698