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

Issue 140253013: Define accelerated steps time function.

Created:
6 years, 11 months ago by a.renevier
Modified:
6 years ago
Reviewers:
danakj, ajuma
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org, Ian Vollick, avallee
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Define accelerated steps time function. This patch is the chromium side. It defines a StepsTimingFunction class in the compositor. For that, it also creates a Steps class in ui/gfx/geometry. The patch also implements a new add method in the animation_curve_impl classes. BUG=229405 R=ajuma@chromium.org

Patch Set 1 #

Patch Set 2 : forgot to add parenthesis (previous patch didn't build) #

Patch Set 3 : git cl upload #

Total comments: 8

Patch Set 4 : new patch #

Total comments: 10

Patch Set 5 : updated patch: fixes reviewer comments + rebase against ToT #

Total comments: 1

Patch Set 6 : updated patch: put Steps and CubicBezier in ui/gfx/animation #

Total comments: 1

Patch Set 7 : updated patch: remove question about velocity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -355 lines) Patch
M cc/animation/keyframed_animation_curve_unittest.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M cc/animation/timing_function.h View 1 2 3 4 5 6 2 chunks +22 lines, -1 line 0 comments Download
M cc/animation/timing_function.cc View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
M cc/blink/web_filter_animation_curve_impl.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M cc/blink/web_filter_animation_curve_impl.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M cc/blink/web_float_animation_curve_impl.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M cc/blink/web_float_animation_curve_impl.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M cc/blink/web_transform_animation_curve_impl.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M cc/blink/web_transform_animation_curve_impl.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
A + ui/gfx/animation/cubic_bezier.h View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + ui/gfx/animation/cubic_bezier.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A + ui/gfx/animation/cubic_bezier_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A ui/gfx/animation/steps.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A ui/gfx/animation/steps.cc View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A ui/gfx/animation/steps_unittest.cc View 1 2 3 4 5 1 chunk +84 lines, -0 lines 0 comments Download
M ui/gfx/animation/tween.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/geometry/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
D ui/gfx/geometry/cubic_bezier.h View 1 2 3 4 5 1 chunk +0 lines, -39 lines 0 comments Download
D ui/gfx/geometry/cubic_bezier.cc View 1 2 3 4 5 1 chunk +0 lines, -139 lines 0 comments Download
D ui/gfx/geometry/cubic_bezier_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -168 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M ui/gfx/gfx_tests.gyp View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (1 generated)
a.renevier
forgot to add parenthesis (previous patch didn't build)
6 years, 11 months ago (2014-01-24 23:20:37 UTC) #1
a.renevier
forgot to add parenthesis (previous patch didn't build)
6 years, 11 months ago (2014-01-24 23:20:38 UTC) #2
a.renevier
forgot to add parenthesis (previous patch didn't build)
6 years, 11 months ago (2014-01-24 23:20:39 UTC) #3
a.renevier
forgot to add parenthesis (previous patch didn't build)
6 years, 11 months ago (2014-01-24 23:20:40 UTC) #4
a.renevier
6 years, 10 months ago (2014-02-21 18:23:08 UTC) #5
ajuma
Thanks for working on this! This is looking pretty good, just a few nits. https://codereview.chromium.org/140253013/diff/290001/cc/animation/timing_function.h ...
6 years, 10 months ago (2014-02-21 19:05:08 UTC) #6
a.renevier
Thanks for the review. Also, since my first iteration of the patch, the logic for ...
6 years, 10 months ago (2014-02-24 18:47:11 UTC) #7
a.renevier
6 years, 10 months ago (2014-02-24 18:47:17 UTC) #8
ajuma
On 2014/02/24 18:47:11, a.renevier wrote: > Thanks for the review. > > Also, since my ...
6 years, 10 months ago (2014-02-24 18:56:08 UTC) #9
a.renevier
6 years, 10 months ago (2014-02-24 19:49:20 UTC) #10
ajuma
Just a few more comments. https://codereview.chromium.org/140253013/diff/420001/cc/animation/keyframed_animation_curve_unittest.cc File cc/animation/keyframed_animation_curve_unittest.cc (right): https://codereview.chromium.org/140253013/diff/420001/cc/animation/keyframed_animation_curve_unittest.cc#newcode443 cc/animation/keyframed_animation_curve_unittest.cc:443: EXPECT_FLOAT_EQ(0.25f, curve->GetValue(0.25)); 0.25f https://codereview.chromium.org/140253013/diff/420001/cc/animation/keyframed_animation_curve_unittest.cc#newcode445 ...
6 years, 10 months ago (2014-02-24 21:11:16 UTC) #11
a.renevier
updated patch: fixes reviewer comments + rebase against ToT
6 years, 3 months ago (2014-09-15 23:49:18 UTC) #12
a.renevier
6 years, 3 months ago (2014-09-15 23:51:48 UTC) #14
danakj
https://codereview.chromium.org/140253013/diff/460001/ui/gfx/geometry/steps.h File ui/gfx/geometry/steps.h (right): https://codereview.chromium.org/140253013/diff/460001/ui/gfx/geometry/steps.h#newcode1 ui/gfx/geometry/steps.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 3 months ago (2014-09-16 00:16:22 UTC) #15
a.renevier
On 2014/09/16 00:16:22, danakj wrote: > https://codereview.chromium.org/140253013/diff/460001/ui/gfx/geometry/steps.h > File ui/gfx/geometry/steps.h (right): > > https://codereview.chromium.org/140253013/diff/460001/ui/gfx/geometry/steps.h#newcode1 > ...
6 years, 3 months ago (2014-09-16 00:22:34 UTC) #16
danakj
On 2014/09/16 00:22:34, a.renevier wrote: > On 2014/09/16 00:16:22, danakj wrote: > > https://codereview.chromium.org/140253013/diff/460001/ui/gfx/geometry/steps.h > ...
6 years, 3 months ago (2014-09-16 00:24:15 UTC) #17
a.renevier
updated patch: put Steps and CubicBezier in ui/gfx/animation
6 years, 3 months ago (2014-09-16 01:00:50 UTC) #18
ajuma
https://codereview.chromium.org/140253013/diff/480001/cc/animation/timing_function.h File cc/animation/timing_function.h (right): https://codereview.chromium.org/140253013/diff/480001/cc/animation/timing_function.h#newcode67 cc/animation/timing_function.h:67: // with non bezier curves make sense? ScrollOffsetAnimationCurves with ...
6 years, 3 months ago (2014-09-16 14:50:15 UTC) #19
a.renevier
updated patch: remove question about velocity
6 years, 3 months ago (2014-09-16 17:33:30 UTC) #20
loyso (OOO)
6 years ago (2014-12-17 03:30:02 UTC) #21
On 2014/09/16 17:33:30, a.renevier wrote:
> updated patch: remove question about velocity

I'm implementing the cc steps timing function here:
https://codereview.chromium.org/809523004

Powered by Google App Engine
This is Rietveld 408576698