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

Issue 693883004: Make cc::animation::TrimTimeToCurrentIteration,cc::AnimationCurve::Duration use TimeTicks/TimeDelta (Closed)

Created:
6 years, 1 month ago by patro
Modified:
6 years, 1 month ago
Reviewers:
danakj, ajuma, sivag, mithro-old
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make cc::Animation::TrimTimeToCurrentIteration and cc::AnimationCurve::Duration use TimeTicks/TimeDelta to represent time. This patch adds a new file time_util.h which adds new class TimeUtil. This TimeUtil class holds helper functions to operate on TimeDelta in double because base::TimeDelta class doesnot allow multiply/divide operations in double. Committed: https://crrev.com/71ff07f3e8b5d1861877cefc046bcea53125c7f7 Cr-Commit-Position: refs/heads/master@{#303790}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : #

Total comments: 8

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+742 lines, -408 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M cc/animation/animation.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M cc/animation/animation.cc View 1 2 3 4 5 6 7 3 chunks +28 lines, -22 lines 0 comments Download
M cc/animation/animation_curve.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M cc/animation/animation_unittest.cc View 1 2 3 5 chunks +578 lines, -289 lines 0 comments Download
M cc/animation/keyframed_animation_curve.h View 1 2 3 5 chunks +5 lines, -4 lines 0 comments Download
M cc/animation/keyframed_animation_curve.cc View 1 2 3 4 chunks +12 lines, -8 lines 0 comments Download
M cc/animation/layer_animation_controller.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M cc/animation/layer_animation_controller_unittest.cc View 1 2 3 4 5 6 7 4 chunks +9 lines, -15 lines 0 comments Download
M cc/animation/scroll_offset_animation_curve.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/animation/scroll_offset_animation_curve.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M cc/animation/scroll_offset_animation_curve_unittest.cc View 1 2 3 4 chunks +31 lines, -31 lines 0 comments Download
A cc/base/time_util.h View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
M cc/blink/web_scroll_offset_animation_curve_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/animation_test_common.h View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
M cc/test/animation_test_common.cc View 1 2 3 3 chunks +12 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/compositor/float_animation_curve_adapter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/float_animation_curve_adapter.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/compositor/transform_animation_curve_adapter.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ui/compositor/transform_animation_curve_adapter.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
patro
Kindly Review Thanks, Shyam Patro
6 years, 1 month ago (2014-11-03 11:45:06 UTC) #3
ajuma
Thanks for working on this! I'm worried about all the additional conversions between doubles and ...
6 years, 1 month ago (2014-11-03 19:13:02 UTC) #4
ajuma
On 2014/11/03 19:13:02, ajuma wrote: > Thanks for working on this! > > I'm worried ...
6 years, 1 month ago (2014-11-03 19:15:06 UTC) #5
patro
On 2014/11/03 19:15:06, ajuma wrote: > On 2014/11/03 19:13:02, ajuma wrote: > > Thanks for ...
6 years, 1 month ago (2014-11-05 10:16:39 UTC) #6
ajuma
On 2014/11/05 10:16:39, patro wrote: > 1) The inability to directly multiply/divide TimeDelta by a ...
6 years, 1 month ago (2014-11-05 17:13:53 UTC) #8
danakj
On Wed, Nov 5, 2014 at 12:13 PM, <ajuma@chromium.org> wrote: > On 2014/11/05 10:16:39, patro ...
6 years, 1 month ago (2014-11-05 19:19:43 UTC) #9
patro
Kindly Review Thanks, Shyam Patro
6 years, 1 month ago (2014-11-06 11:21:16 UTC) #10
ajuma
Mostly looks fine, but I have a few more comments. https://codereview.chromium.org/693883004/diff/100001/cc/animation/animation.cc File cc/animation/animation.cc (right): https://codereview.chromium.org/693883004/diff/100001/cc/animation/animation.cc#newcode231 ...
6 years, 1 month ago (2014-11-06 18:03:23 UTC) #11
ajuma
https://codereview.chromium.org/693883004/diff/100001/cc/base/time_util.h File cc/base/time_util.h (right): https://codereview.chromium.org/693883004/diff/100001/cc/base/time_util.h#newcode15 cc/base/time_util.h:15: return base::TimeDelta::FromInternalValue(time_delta.ToInternalValue() * On 2014/11/06 18:03:23, ajuma wrote: > ...
6 years, 1 month ago (2014-11-06 18:07:20 UTC) #12
patro
https://codereview.chromium.org/693883004/diff/100001/cc/animation/animation.cc File cc/animation/animation.cc (right): https://codereview.chromium.org/693883004/diff/100001/cc/animation/animation.cc#newcode231 cc/animation/animation.cc:231: fmod(scaled_active_time.InSecondsF(), curve_->Duration().InSecondsF())); On 2014/11/06 18:03:23, ajuma wrote: > Could ...
6 years, 1 month ago (2014-11-07 07:03:40 UTC) #13
ajuma
This is pretty close now, just a few more nits. Also, please update the description ...
6 years, 1 month ago (2014-11-07 15:58:00 UTC) #14
patro
https://codereview.chromium.org/693883004/diff/120001/cc/animation/layer_animation_controller_unittest.cc File cc/animation/layer_animation_controller_unittest.cc (left): https://codereview.chromium.org/693883004/diff/120001/cc/animation/layer_animation_controller_unittest.cc#oldcode6 cc/animation/layer_animation_controller_unittest.cc:6: On 2014/11/07 15:58:00, ajuma wrote: > Please leave this ...
6 years, 1 month ago (2014-11-10 09:46:52 UTC) #15
ajuma
Thanks, lgtm with a couple nits. Please wrap the description so that each line is ...
6 years, 1 month ago (2014-11-10 14:32:43 UTC) #16
patro
https://codereview.chromium.org/693883004/diff/140001/cc/base/time_util.h File cc/base/time_util.h (right): https://codereview.chromium.org/693883004/diff/140001/cc/base/time_util.h#newcode19 cc/base/time_util.h:19: } On 2014/11/10 14:32:42, ajuma (OOO till Nov. 13) ...
6 years, 1 month ago (2014-11-12 04:09:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/693883004/160001
6 years, 1 month ago (2014-11-12 04:10:28 UTC) #19
commit-bot: I haz the power
Committed patchset #9 (id:160001)
6 years, 1 month ago (2014-11-12 05:09:17 UTC) #20
commit-bot: I haz the power
6 years, 1 month ago (2014-11-12 05:09:59 UTC) #21
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/71ff07f3e8b5d1861877cefc046bcea53125c7f7
Cr-Commit-Position: refs/heads/master@{#303790}

Powered by Google App Engine
This is Rietveld 408576698