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

Issue 719453007: Make Keyframe use TimeTicks/TimeDelta to represent time instead of double. (Closed)

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

Description

Make Keyframe use TimeTicks/TimeDelta to represent time instead of double. BUG=178171 Committed: https://crrev.com/591d77f964eae64a49bd83910bae574e40f20c1a Cr-Commit-Position: refs/heads/master@{#304612}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Total comments: 2

Patch Set 6 : Fixing unit_tests #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+590 lines, -433 lines) Patch
M cc/animation/animation_curve.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M cc/animation/keyframed_animation_curve.h View 1 2 13 chunks +19 lines, -21 lines 0 comments Download
M cc/animation/keyframed_animation_curve.cc View 1 2 3 16 chunks +45 lines, -42 lines 0 comments Download
M cc/animation/keyframed_animation_curve_unittest.cc View 1 2 23 chunks +325 lines, -229 lines 0 comments Download
M cc/animation/layer_animation_controller.cc View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M cc/animation/layer_animation_controller_unittest.cc View 14 chunks +56 lines, -28 lines 0 comments Download
M cc/animation/scroll_offset_animation_curve.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/animation/scroll_offset_animation_curve.cc View 1 2 3 3 chunks +9 lines, -6 lines 0 comments Download
M cc/animation/scroll_offset_animation_curve_unittest.cc View 1 2 3 4 5 4 chunks +40 lines, -31 lines 0 comments Download
M cc/base/time_util.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M cc/blink/web_filter_animation_curve_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/blink/web_float_animation_curve_impl.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M cc/blink/web_scroll_offset_animation_curve_impl.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/blink/web_transform_animation_curve_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/input/top_controls_manager.cc View 1 2 3 4 5 6 3 chunks +8 lines, -9 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M cc/test/animation_test_common.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M cc/test/animation_test_common.cc View 1 2 3 7 chunks +20 lines, -14 lines 0 comments Download
M cc/test/geometry_test_utils.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M ui/compositor/float_animation_curve_adapter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/float_animation_curve_adapter.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M ui/compositor/transform_animation_curve_adapter.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ui/compositor/transform_animation_curve_adapter.cc View 1 2 3 4 chunks +10 lines, -8 lines 0 comments Download
M ui/compositor/transform_animation_curve_adapter_unittest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
patro
Kindly Review
6 years, 1 month ago (2014-11-13 14:25:57 UTC) #4
ajuma
Thanks, this is off to a good start. I think we should also change TransformAnimationCurve::GetValue, ...
6 years, 1 month ago (2014-11-13 15:45:52 UTC) #5
patro
https://codereview.chromium.org/719453007/diff/60001/cc/animation/keyframed_animation_curve.cc File cc/animation/keyframed_animation_curve.cc (right): https://codereview.chromium.org/719453007/diff/60001/cc/animation/keyframed_animation_curve.cc#newcode41 cc/animation/keyframed_animation_curve.cc:41: (keyframes.back()->Time() - keyframes.front()->Time()).InSecondsF(); On 2014/11/13 15:45:52, ajuma wrote: > ...
6 years, 1 month ago (2014-11-14 10:33:13 UTC) #6
patro
Some unit tests are failing due to lack of precision. The least possible time unit ...
6 years, 1 month ago (2014-11-14 11:10:14 UTC) #7
ajuma
On 2014/11/14 11:10:14, patro wrote: > Some unit tests are failing due to lack of ...
6 years, 1 month ago (2014-11-14 15:12:02 UTC) #8
ajuma
https://codereview.chromium.org/719453007/diff/90001/cc/animation/scroll_offset_animation_curve_unittest.cc File cc/animation/scroll_offset_animation_curve_unittest.cc (right): https://codereview.chromium.org/719453007/diff/90001/cc/animation/scroll_offset_animation_curve_unittest.cc#newcode102 cc/animation/scroll_offset_animation_curve_unittest.cc:102: double duration_in_seconds = curve->Duration().InSecondsF(); We should just use duration ...
6 years, 1 month ago (2014-11-14 15:12:33 UTC) #9
patro
Kindly Review Thanks, Shyam https://codereview.chromium.org/719453007/diff/90001/cc/animation/scroll_offset_animation_curve_unittest.cc File cc/animation/scroll_offset_animation_curve_unittest.cc (right): https://codereview.chromium.org/719453007/diff/90001/cc/animation/scroll_offset_animation_curve_unittest.cc#newcode102 cc/animation/scroll_offset_animation_curve_unittest.cc:102: double duration_in_seconds = curve->Duration().InSecondsF(); On ...
6 years, 1 month ago (2014-11-17 13:26:48 UTC) #10
ajuma
Please look into the cc_unittest failures on the bots. The scroll animation failures look like ...
6 years, 1 month ago (2014-11-17 14:47:20 UTC) #11
patro
Kindly Review Thanks, Shyam https://codereview.chromium.org/719453007/diff/110001/cc/input/top_controls_manager.cc File cc/input/top_controls_manager.cc (right): https://codereview.chromium.org/719453007/diff/110001/cc/input/top_controls_manager.cc#newcode243 cc/input/top_controls_manager.cc:243: base::TimeDelta time_ms = time - ...
6 years, 1 month ago (2014-11-18 10:28:32 UTC) #12
ajuma
Thanks, lgtm with one nit. https://codereview.chromium.org/719453007/diff/170001/cc/trees/layer_tree_host_unittest_animation.cc File cc/trees/layer_tree_host_unittest_animation.cc (right): https://codereview.chromium.org/719453007/diff/170001/cc/trees/layer_tree_host_unittest_animation.cc#newcode515 cc/trees/layer_tree_host_unittest_animation.cc:515: Please remove this blank ...
6 years, 1 month ago (2014-11-18 14:58:14 UTC) #13
patro
https://codereview.chromium.org/719453007/diff/170001/cc/trees/layer_tree_host_unittest_animation.cc File cc/trees/layer_tree_host_unittest_animation.cc (right): https://codereview.chromium.org/719453007/diff/170001/cc/trees/layer_tree_host_unittest_animation.cc#newcode515 cc/trees/layer_tree_host_unittest_animation.cc:515: On 2014/11/18 14:58:14, ajuma wrote: > Please remove this ...
6 years, 1 month ago (2014-11-18 15:04:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/719453007/190001
6 years, 1 month ago (2014-11-18 15:06:04 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:190001)
6 years, 1 month ago (2014-11-18 16:01:48 UTC) #17
commit-bot: I haz the power
6 years, 1 month ago (2014-11-18 16:03:15 UTC) #18
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/591d77f964eae64a49bd83910bae574e40f20c1a
Cr-Commit-Position: refs/heads/master@{#304612}

Powered by Google App Engine
This is Rietveld 408576698