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

Issue 1042143005: Devtools Animations: Support multiple frames in the animation timeline (Closed)

Created:
5 years, 8 months ago by samli
Modified:
5 years, 8 months ago
Reviewers:
dstockwell, pfeldman
CC:
aandrey+blink_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, caseq+blink_chromium.org, devtools-reviews_chromium.org, dstockwell, Eric Willigers, kozyatinskiy+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, Mike Lawther (Google), pfeldman+blink_chromium.org, rjwright, sergeyv+blink_chromium.org, shans, Steve Block, Timothy Loh, yurys+blink_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Devtools Animations: Support multiple frames in the animation timeline Currently, the animation timeline only works for animations attached to the main document frame. This change ensures the inspector agent is properly attached to all frames within the document. All start times sent to the front-end are normalised to the monotonic time. As the playback rate or current time of an animation timeline are manipulated, these monotonic time values are invalidated. Since these methods are controlled from the front-end, the normalised start times are updated. This has no visible UI change. BUG=466827

Patch Set 1 #

Patch Set 2 : Complete #

Patch Set 3 : Test #

Total comments: 17

Patch Set 4 : Review changes #

Patch Set 5 : #

Total comments: 20

Patch Set 6 : Naming changes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -25 lines) Patch
A LayoutTests/inspector-protocol/animation/animation-multiple-frames.html View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/inspector-protocol/animation/animation-multiple-frames-expected.txt View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/inspector-protocol/resources/test-page-trigger-animation.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorAnimationAgent.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorAnimationAgent.cpp View 1 2 3 4 5 4 chunks +53 lines, -6 lines 0 comments Download
M Source/devtools/front_end/elements/AnimationTimeline.js View 1 2 3 4 5 8 chunks +45 lines, -11 lines 0 comments Download
M Source/devtools/front_end/sdk/AnimationModel.js View 1 2 3 4 5 4 chunks +59 lines, -1 line 0 comments Download
M Source/devtools/protocol.json View 1 2 3 4 5 3 chunks +32 lines, -5 lines 1 comment Download

Messages

Total messages: 21 (4 generated)
samli
WIP. Incomplete tasks: - Check properly attached to all new incoming frames (and set playback ...
5 years, 8 months ago (2015-03-31 06:56:08 UTC) #2
samli
On 2015/03/31 at 06:56:08, samli wrote: > WIP. > > Incomplete tasks: > - Check ...
5 years, 8 months ago (2015-03-31 11:02:23 UTC) #4
samli
PTAL, has test now.
5 years, 8 months ago (2015-04-01 01:14:47 UTC) #5
pfeldman
https://codereview.chromium.org/1042143005/diff/40001/Source/core/inspector/InspectorAnimationAgent.cpp File Source/core/inspector/InspectorAnimationAgent.cpp (right): https://codereview.chromium.org/1042143005/diff/40001/Source/core/inspector/InspectorAnimationAgent.cpp#newcode177 Source/core/inspector/InspectorAnimationAgent.cpp:177: return player.startTime() / player.timeline()->playbackRate() + player.timeline()->zeroTime() * 1000; What ...
5 years, 8 months ago (2015-04-01 13:06:45 UTC) #6
samli
PTAL https://codereview.chromium.org/1042143005/diff/40001/Source/core/inspector/InspectorAnimationAgent.cpp File Source/core/inspector/InspectorAnimationAgent.cpp (right): https://codereview.chromium.org/1042143005/diff/40001/Source/core/inspector/InspectorAnimationAgent.cpp#newcode177 Source/core/inspector/InspectorAnimationAgent.cpp:177: return player.startTime() / player.timeline()->playbackRate() + player.timeline()->zeroTime() * 1000; ...
5 years, 8 months ago (2015-04-02 09:58:00 UTC) #8
pfeldman
https://codereview.chromium.org/1042143005/diff/40001/Source/core/inspector/InspectorAnimationAgent.cpp File Source/core/inspector/InspectorAnimationAgent.cpp (right): https://codereview.chromium.org/1042143005/diff/40001/Source/core/inspector/InspectorAnimationAgent.cpp#newcode177 Source/core/inspector/InspectorAnimationAgent.cpp:177: return player.startTime() / player.timeline()->playbackRate() + player.timeline()->zeroTime() * 1000; On ...
5 years, 8 months ago (2015-04-02 14:42:39 UTC) #9
samli
+dstockwell for animation related changes https://codereview.chromium.org/1042143005/diff/40001/Source/core/inspector/InspectorAnimationAgent.cpp File Source/core/inspector/InspectorAnimationAgent.cpp (right): https://codereview.chromium.org/1042143005/diff/40001/Source/core/inspector/InspectorAnimationAgent.cpp#newcode177 Source/core/inspector/InspectorAnimationAgent.cpp:177: return player.startTime() / player.timeline()->playbackRate() ...
5 years, 8 months ago (2015-04-02 20:13:19 UTC) #11
pfeldman
On 2015/04/02 20:13:19, samli wrote: > +dstockwell for animation related changes > > https://codereview.chromium.org/1042143005/diff/40001/Source/core/inspector/InspectorAnimationAgent.cpp > ...
5 years, 8 months ago (2015-04-02 20:25:19 UTC) #12
samli
That's what this patch is :)
5 years, 8 months ago (2015-04-02 21:50:37 UTC) #13
pfeldman
https://codereview.chromium.org/1042143005/diff/80001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/1042143005/diff/80001/Source/devtools/protocol.json#newcode4834 Source/devtools/protocol.json:4834: { "name": "startTime", "type": "number", "description": "<code>AnimationPlayer</code>'s start time." ...
5 years, 8 months ago (2015-04-03 09:19:41 UTC) #14
samli
https://codereview.chromium.org/1042143005/diff/80001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/1042143005/diff/80001/Source/devtools/protocol.json#newcode4834 Source/devtools/protocol.json:4834: { "name": "startTime", "type": "number", "description": "<code>AnimationPlayer</code>'s start time." ...
5 years, 8 months ago (2015-04-03 09:56:01 UTC) #15
pfeldman
https://codereview.chromium.org/1042143005/diff/80001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/1042143005/diff/80001/Source/devtools/protocol.json#newcode4835 Source/devtools/protocol.json:4835: { "name": "currentTime", "type": "number", "description": "<code>AnimationPlayer</code>'s current time." ...
5 years, 8 months ago (2015-04-03 10:36:49 UTC) #16
samli
https://codereview.chromium.org/1042143005/diff/80001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/1042143005/diff/80001/Source/devtools/protocol.json#newcode4835 Source/devtools/protocol.json:4835: { "name": "currentTime", "type": "number", "description": "<code>AnimationPlayer</code>'s current time." ...
5 years, 8 months ago (2015-04-03 11:31:32 UTC) #17
dstockwell
let's drop the 'normalized' terminology from the protocol. *all* absolute time values passed to/from the ...
5 years, 8 months ago (2015-04-07 01:27:12 UTC) #18
samli
PTAL. Naming updated. The front-end/protocol knows nothing about timelines/monotonic time. It is agnostic to this ...
5 years, 8 months ago (2015-04-07 02:27:31 UTC) #19
pfeldman
https://codereview.chromium.org/1042143005/diff/100001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/1042143005/diff/100001/Source/devtools/protocol.json#newcode4935 Source/devtools/protocol.json:4935: { "name": "animationStartTimes", "type": "array", "items": { "$ref": "AnimationStartTime" ...
5 years, 8 months ago (2015-04-07 10:27:34 UTC) #20
samli
5 years, 8 months ago (2015-04-13 02:11:37 UTC) #21

Powered by Google App Engine
This is Rietveld 408576698