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

Issue 95763002: cc: Support animating scroll offset (Closed)

Created:
7 years ago by ajuma
Modified:
7 years ago
Reviewers:
Ian Vollick
CC:
chromium-reviews, cc-bugs_chromium.org, avallee
Visibility:
Public.

Description

cc: Support animating scroll offset This makes cc::LayerAnimationController support animating scroll offset. This is needed for implementing the CSSOM View smooth scroll API. BUG=243871 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238271

Patch Set 1 #

Total comments: 20

Patch Set 2 : #

Patch Set 3 : Rebased #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+499 lines, -20 lines) Patch
M cc/animation/animation.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/animation/animation.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/animation/layer_animation_controller.h View 4 chunks +13 lines, -0 lines 0 comments Download
M cc/animation/layer_animation_controller.cc View 6 chunks +41 lines, -0 lines 0 comments Download
M cc/animation/layer_animation_controller_unittest.cc View 1 2 3 2 chunks +203 lines, -0 lines 0 comments Download
M cc/animation/layer_animation_value_observer.h View 1 chunk +1 line, -0 lines 0 comments Download
A cc/animation/layer_animation_value_provider.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
M cc/animation/scroll_offset_animation_curve.h View 1 chunk +2 lines, -7 lines 0 comments Download
M cc/animation/scroll_offset_animation_curve.cc View 1 3 chunks +21 lines, -2 lines 0 comments Download
M cc/animation/scroll_offset_animation_curve_unittest.cc View 3 chunks +50 lines, -7 lines 0 comments Download
M cc/cc.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.h View 3 chunks +7 lines, -1 line 0 comments Download
M cc/layers/layer.cc View 5 chunks +13 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 3 chunks +7 lines, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 3 chunks +21 lines, -1 line 0 comments Download
M cc/test/animation_test_common.h View 4 chunks +17 lines, -0 lines 0 comments Download
M cc/test/animation_test_common.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 2 chunks +53 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ajuma
https://codereview.chromium.org/95763002/diff/1/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/95763002/diff/1/cc/layers/layer.cc#newcode1077 cc/layers/layer.cc:1077: // compositor-driven scrolling. SingleThreadProxy doesn't send back scroll deltas. ...
7 years ago (2013-11-28 22:33:35 UTC) #1
ajuma
One thing I forgot to mention: https://codereview.chromium.org/95763002/diff/1/cc/animation/scroll_offset_animation_curve.cc File cc/animation/scroll_offset_animation_curve.cc (right): https://codereview.chromium.org/95763002/diff/1/cc/animation/scroll_offset_animation_curve.cc#newcode39 cc/animation/scroll_offset_animation_curve.cc:39: duration_ = std::sqrt(max_delta)/kDurationDivisor; ...
7 years ago (2013-11-29 15:14:06 UTC) #2
Ian Vollick
https://codereview.chromium.org/95763002/diff/1/cc/animation/layer_animation_controller.h File cc/animation/layer_animation_controller.h (right): https://codereview.chromium.org/95763002/diff/1/cc/animation/layer_animation_controller.h#newcode103 cc/animation/layer_animation_controller.h:103: void remove_value_provider(LayerAnimationValueProvider* provider) { Why not just set_value_provider(NULL)? https://codereview.chromium.org/95763002/diff/1/cc/animation/layer_animation_controller_unittest.cc ...
7 years ago (2013-11-29 15:29:28 UTC) #3
ajuma
https://codereview.chromium.org/95763002/diff/1/cc/animation/layer_animation_controller.h File cc/animation/layer_animation_controller.h (right): https://codereview.chromium.org/95763002/diff/1/cc/animation/layer_animation_controller.h#newcode103 cc/animation/layer_animation_controller.h:103: void remove_value_provider(LayerAnimationValueProvider* provider) { On 2013/11/29 15:29:29, Ian Vollick ...
7 years ago (2013-11-29 21:18:41 UTC) #4
ajuma
PTAL.
7 years ago (2013-12-02 21:16:11 UTC) #5
Ian Vollick
lgtm https://codereview.chromium.org/95763002/diff/1/cc/animation/layer_animation_controller.h File cc/animation/layer_animation_controller.h (right): https://codereview.chromium.org/95763002/diff/1/cc/animation/layer_animation_controller.h#newcode103 cc/animation/layer_animation_controller.h:103: void remove_value_provider(LayerAnimationValueProvider* provider) { On 2013/11/29 21:18:41, ajuma ...
7 years ago (2013-12-02 21:23:31 UTC) #6
ajuma
https://codereview.chromium.org/95763002/diff/1/cc/animation/layer_animation_controller_unittest.cc File cc/animation/layer_animation_controller_unittest.cc (right): https://codereview.chromium.org/95763002/diff/1/cc/animation/layer_animation_controller_unittest.cc#newcode607 cc/animation/layer_animation_controller_unittest.cc:607: controller->Animate(1.0 + duration/2.0); On 2013/12/02 21:23:32, Ian Vollick wrote: ...
7 years ago (2013-12-02 21:48:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/95763002/50001
7 years ago (2013-12-02 21:59:11 UTC) #8
commit-bot: I haz the power
7 years ago (2013-12-03 02:20:51 UTC) #9
Message was sent while issue was closed.
Change committed as 238271

Powered by Google App Engine
This is Rietveld 408576698