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

Issue 2006103004: Send takeover msg from MT to CC using the animation path. (Closed)

Created:
4 years, 7 months ago by ymalik
Modified:
4 years, 7 months ago
Reviewers:
ajuma, skobes, jbroman
CC:
darktears, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-layout_chromium.org, cc-bugs_chromium.org, chromium-reviews, eae+blinkwatch, Eric Willigers, jchaffraix+rendering, kenneth.christiansen, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rjwright, shans, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send takeover msg from MT to CC using the animation path. This is a follow-up CL to https://crrev.com/1950243005/ When a main thread scrolling reason gets added while there is a scroll offset animation running on CC, the animation is aborted on CC and finished on the MT. Before this CL, the plumbing for aborting the animation went through LayerImpl::set_main_thread_scrolling_reasons, which is reworked with property trees. This CL uses the communication scheme described in http://bit.ly/1Y6RA6y to send a "takeover" update to CC. BUG=607047 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/4c34ac5562280bc5efd47a23f6974620ea7b757c Cr-Commit-Position: refs/heads/master@{#396061}

Patch Set 1 #

Total comments: 10

Patch Set 2 : review comments #

Patch Set 3 : fix visibility #

Total comments: 9

Patch Set 4 : jbroman nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -106 lines) Patch
M cc/animation/animation_host.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/animation/animation_host.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M cc/animation/scroll_offset_animations.h View 1 4 chunks +16 lines, -7 lines 0 comments Download
M cc/animation/scroll_offset_animations.cc View 1 1 chunk +37 lines, -14 lines 0 comments Download
M cc/layers/layer_impl.h View 1 chunk +3 lines, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 2 chunks +6 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 2 chunks +15 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/animation/CompositorAnimationHost.cpp View 1 2 3 1 chunk +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ProgrammaticScrollAnimator.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimator.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h View 1 2 3 3 chunks +11 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp View 1 2 3 5 chunks +31 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp View 1 2 3 4 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
ymalik
4 years, 7 months ago (2016-05-24 22:21:55 UTC) #3
ajuma
lgtm, the new approach seems a lot cleaner than the old one! https://codereview.chromium.org/2006103004/diff/1/cc/animation/scroll_offset_animations.cc File cc/animation/scroll_offset_animations.cc ...
4 years, 7 months ago (2016-05-24 23:25:09 UTC) #4
skobes
https://codereview.chromium.org/2006103004/diff/1/cc/animation/scroll_offset_animations.cc File cc/animation/scroll_offset_animations.cc (right): https://codereview.chromium.org/2006103004/diff/1/cc/animation/scroll_offset_animations.cc#newcode33 cc/animation/scroll_offset_animations.cc:33: element_to_update_map_.insert(std::make_pair(element_id, update)); Hmm, I think unordered_map::insert will not replace ...
4 years, 7 months ago (2016-05-24 23:50:50 UTC) #5
ymalik
@skobes, ptal :) https://codereview.chromium.org/2006103004/diff/1/cc/animation/scroll_offset_animations.cc File cc/animation/scroll_offset_animations.cc (right): https://codereview.chromium.org/2006103004/diff/1/cc/animation/scroll_offset_animations.cc#newcode12 cc/animation/scroll_offset_animations.cc:12: : element_id_(element_id) {} On 2016/05/24 23:25:09, ...
4 years, 7 months ago (2016-05-25 16:09:05 UTC) #6
skobes
lgtm
4 years, 7 months ago (2016-05-25 16:48:53 UTC) #7
ymalik
+jbroman for Source/platform
4 years, 7 months ago (2016-05-25 16:58:28 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2006103004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2006103004/20001
4 years, 7 months ago (2016-05-25 18:07:06 UTC) #11
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 18:25:37 UTC) #12
jbroman
Assuming the scrolling logic was already reviewed by ajuma and skobes, platform lgtm with a ...
4 years, 7 months ago (2016-05-25 19:00:38 UTC) #13
ymalik
https://codereview.chromium.org/2006103004/diff/40001/third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h File third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h (right): https://codereview.chromium.org/2006103004/diff/40001/third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h#newcode36 third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h:36: void takeoverImplOnlyScrollOffsetAnimation(cc::ElementId); On 2016/05/25 19:00:37, jbroman wrote: > nit: ...
4 years, 7 months ago (2016-05-25 19:51:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2006103004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2006103004/60001
4 years, 7 months ago (2016-05-25 19:51:48 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/153975)
4 years, 7 months ago (2016-05-25 20:31:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2006103004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2006103004/60001
4 years, 7 months ago (2016-05-25 22:40:16 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-26 00:58:41 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 00:59:49 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4c34ac5562280bc5efd47a23f6974620ea7b757c
Cr-Commit-Position: refs/heads/master@{#396061}

Powered by Google App Engine
This is Rietveld 408576698