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

Issue 881183003: Animation: Cancel same-property animations on compositor (Closed)

Created:
5 years, 11 months ago by loyso (OOO)
Modified:
5 years, 10 months ago
Reviewers:
dstockwell, shans
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, dglazkov+blink, Eric Willigers, Mike Lawther (Google), rjwright, shans, Steve Block, Timothy Loh
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Animation: Cancel same-property animations on compositor Do not support multiple animations per property on compositor. In case of addition of a second animation we must pull back the already running animations from compositor and rely on blink thread to visualize that combination properly. This is the most reasonable short-term solution for the bug. BUG=358832 R=shans@chromium.org R=dstockwell@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189319

Patch Set 1 #

Total comments: 15

Patch Set 2 : Fix codereview issues #

Patch Set 3 : Format #

Patch Set 4 : Fix compilation #

Patch Set 5 : Major fix. #

Total comments: 6

Patch Set 6 : Fix win unreachable code warning #

Patch Set 7 : Fix codereview nits #

Patch Set 8 : Add manual test. Improve code a bit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -23 lines) Patch
A ManualTests/animation/compositor-animation-same-property.html View 1 2 3 4 5 6 7 1 chunk +159 lines, -0 lines 0 comments Download
M Source/core/animation/Animation.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/animation/Animation.cpp View 1 3 chunks +8 lines, -2 lines 0 comments Download
M Source/core/animation/AnimationEffect.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/AnimationPlayer.h View 1 2 3 4 5 6 7 4 chunks +5 lines, -1 line 0 comments Download
M Source/core/animation/AnimationPlayer.cpp View 1 5 chunks +26 lines, -9 lines 0 comments Download
M Source/core/animation/CompositorAnimations.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/animation/CompositorAnimations.cpp View 1 2 3 4 5 6 7 5 chunks +78 lines, -4 lines 0 comments Download
M Source/core/animation/CompositorAnimationsTest.cpp View 1 2 3 7 chunks +90 lines, -2 lines 0 comments Download
M Source/core/animation/CompositorAnimationsTestHelper.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/animation/KeyframeEffectModel.h View 1 chunk +1 line, -1 line 0 comments Download
M public/platform/WebCompositorAnimation.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (1 generated)
loyso (OOO)
5 years, 11 months ago (2015-01-28 04:47:59 UTC) #1
dstockwell
https://codereview.chromium.org/881183003/diff/1/Source/core/animation/Animation.cpp File Source/core/animation/Animation.cpp (right): https://codereview.chromium.org/881183003/diff/1/Source/core/animation/Animation.cpp#newcode303 Source/core/animation/Animation.cpp:303: void Animation::cancelAffectedAnimationsOnCompositor() I think the term 'affected' is a ...
5 years, 11 months ago (2015-01-28 05:44:06 UTC) #2
loyso (OOO)
https://codereview.chromium.org/881183003/diff/1/Source/core/animation/Animation.cpp File Source/core/animation/Animation.cpp (right): https://codereview.chromium.org/881183003/diff/1/Source/core/animation/Animation.cpp#newcode303 Source/core/animation/Animation.cpp:303: void Animation::cancelAffectedAnimationsOnCompositor() On 2015/01/28 05:44:05, dstockwell wrote: > I ...
5 years, 11 months ago (2015-01-28 06:33:32 UTC) #3
loyso (OOO)
https://codereview.chromium.org/881183003/diff/1/Source/core/animation/CompositorAnimations.cpp File Source/core/animation/CompositorAnimations.cpp (right): https://codereview.chromium.org/881183003/diff/1/Source/core/animation/CompositorAnimations.cpp#newcode168 Source/core/animation/CompositorAnimations.cpp:168: bool CompositorAnimations::isCandidateForAnimationOnCompositor(const Timing& timing, const Element* targetElement, const AnimationPlayer* ...
5 years, 10 months ago (2015-01-28 23:18:34 UTC) #4
loyso (OOO)
https://codereview.chromium.org/881183003/diff/1/Source/core/animation/CompositorAnimations.cpp File Source/core/animation/CompositorAnimations.cpp (right): https://codereview.chromium.org/881183003/diff/1/Source/core/animation/CompositorAnimations.cpp#newcode85 Source/core/animation/CompositorAnimations.cpp:85: const AnimationPlayer* attachedPlayer = entry.key; On 2015/01/28 05:44:05, dstockwell ...
5 years, 10 months ago (2015-01-29 01:08:54 UTC) #5
dstockwell
https://codereview.chromium.org/881183003/diff/1/Source/core/animation/AnimationPlayer.h File Source/core/animation/AnimationPlayer.h (right): https://codereview.chromium.org/881183003/diff/1/Source/core/animation/AnimationPlayer.h#newcode150 Source/core/animation/AnimationPlayer.h:150: bool affects(CSSPropertyID) const; On 2015/01/28 at 06:33:31, loyso wrote: ...
5 years, 10 months ago (2015-01-29 01:14:07 UTC) #6
loyso (OOO)
https://codereview.chromium.org/881183003/diff/1/Source/core/animation/CompositorAnimations.cpp File Source/core/animation/CompositorAnimations.cpp (right): https://codereview.chromium.org/881183003/diff/1/Source/core/animation/CompositorAnimations.cpp#newcode85 Source/core/animation/CompositorAnimations.cpp:85: const AnimationPlayer* attachedPlayer = entry.key; On 2015/01/29 01:14:07, dstockwell ...
5 years, 10 months ago (2015-01-29 04:35:59 UTC) #7
dstockwell
On 2015/01/29 at 04:35:59, loyso wrote: > https://codereview.chromium.org/881183003/diff/1/Source/core/animation/CompositorAnimations.cpp > File Source/core/animation/CompositorAnimations.cpp (right): > > https://codereview.chromium.org/881183003/diff/1/Source/core/animation/CompositorAnimations.cpp#newcode85 ...
5 years, 10 months ago (2015-01-29 04:40:18 UTC) #8
loyso (OOO)
On 2015/01/29 04:40:18, dstockwell wrote: > > > Yes. Hmm, also players which are idle ...
5 years, 10 months ago (2015-01-29 05:53:25 UTC) #9
dstockwell
On 2015/01/29 at 05:53:25, loyso wrote: > On 2015/01/29 04:40:18, dstockwell wrote: > > > ...
5 years, 10 months ago (2015-01-29 06:00:47 UTC) #10
dstockwell
lgtm, some minor nits and I think we should add some more manual tests to ...
5 years, 10 months ago (2015-01-30 02:39:23 UTC) #11
loyso (OOO)
https://codereview.chromium.org/881183003/diff/80001/Source/core/animation/CompositorAnimations.cpp File Source/core/animation/CompositorAnimations.cpp (right): https://codereview.chromium.org/881183003/diff/80001/Source/core/animation/CompositorAnimations.cpp#newcode96 Source/core/animation/CompositorAnimations.cpp:96: bool hasIncompatatibleAnimations(const Element& targetElement, const AnimationPlayer& playerToAdd, const AnimationEffect& ...
5 years, 10 months ago (2015-01-30 02:53:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881183003/140001
5 years, 10 months ago (2015-02-02 06:18:23 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-02 06:21:32 UTC) #15
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189319

Powered by Google App Engine
This is Rietveld 408576698