Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented setPlaybackRate for scroll-linked Worklet Animations. #15336

Merged
merged 1 commit into from Mar 8, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Feb 11, 2019

• Updated logic of calculating initial current time of non-composited scroll-linked animations to
ensure that the start time is always initialized to zero.
• Changed signature of cc::ScrollTimeline::CurrentTime to return base::Optional<base::TimeTicks>.
This is to enforce cc: WorkletAnimation::CurrentTime operating in the same units of
base::TimeTicks and correctly handling NaN values.
• Adjusted start time of scroll-linked animations when playback rate is updated.

Bug: 852475
Change-Id: Iffd966c1b3ef6d821eef7cc2f6f79dae790a69f3
Reviewed-on: https://chromium-review.googlesource.com/c/1461513
Commit-Queue: Olga Gerchikov <gerchiko@microsoft.com>
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636836}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1461513 branch 5 times, most recently from 20088f1 to 0e71535 Compare February 15, 2019 19:57
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1461513 branch 4 times, most recently from 693efd5 to 2c02fea Compare February 26, 2019 18:06
• Updated logic of calculating initial current time of non-composited scroll-linked animations to
  ensure that the start time is always initialized to zero.
• Changed signature of cc::ScrollTimeline::CurrentTime to return base::Optional<base::TimeTicks>.
  This is to enforce cc: WorkletAnimation::CurrentTime operating in the same units of
  base::TimeTicks and correctly handling NaN values.
• Adjusted start time of scroll-linked animations when playback rate is updated.

Bug: 852475
Change-Id: Iffd966c1b3ef6d821eef7cc2f6f79dae790a69f3
Reviewed-on: https://chromium-review.googlesource.com/c/1461513
Commit-Queue: Olga Gerchikov <gerchiko@microsoft.com>
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636836}
@foolip
Copy link
Member

foolip commented Mar 6, 2019

Taskcluster wpt-chrome-dev-stability failure is:

Unstable results

Test Subtest Results Messages
/animation-worklet/playback-rate.https.html When playback rate is updated, the underlying effect is properly updated with the current time of its WorkletAnimation and produces correct visual result. FAIL: 1/10, PASS: 9/10 assert_approx_equals: When playback rate is set on WorkletAnimation, the underlying effect's timing should be properly updated. expected 33.33 +/- 0.002 but got 33.332

@Hexcles
Copy link
Member

Hexcles commented Mar 8, 2019

Flakiness should be fixed by https://crrev.com/c/1497789 ; force-merging this PR.

@Hexcles Hexcles merged commit 6d7b2c1 into master Mar 8, 2019
@Hexcles Hexcles deleted the chromium-export-cl-1461513 branch March 8, 2019 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants