Closed Bug 1737180 Opened 3 years ago Closed 3 years ago

Enable compositor animation when using scroll-timeline

Categories

(Core :: CSS Transitions and Animations, enhancement, P3)

All
Unspecified
enhancement

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: boris, Assigned: boris)

References

(Blocks 3 open bugs)

Details

Attachments

(4 files, 2 obsolete files)

Bug 1676791 disables compositor animations when we use scroll-timeline. We should enable it and let compositor animations use scroll information.

Copied from Matrix (from Hiro):

Since bug 1571758, scroll-linked animations on the compositor will be complicated because now on the sampler thread APZ hasn't yet determined scroll positions, it defers to the web render rendering thread. So suppose scroll linked animations need to be calculated there.

Assignee: nobody → boris.chiou

We use the struct, ScrollTimelineOptions, and two fields to represent the
information which will be sent to the compositor thread.

And extract this information on the compositor thread. We will use it
in the following patches.

Attachment #9265595 - Attachment description: Bug 1737180 - Part 1: Enable compositor animations for scroll-timeline (wip). → Bug 1737180 - Part 4: Sample scroll-linked animations based on the apz scroll offsets.

And update the related tests as well.

Attachment #9266875 - Attachment description: Bug 1737180 - Part 1: Represent scroll timeline information in the IPC messages. → Bug 1737180 - Part 1: Populate scroll timeline information when adding animations for webrender
Attachment #9266877 - Attachment description: Bug 1737180 - Part 3: Move the calculation of elapsed duration into a static function. → Bug 1737180 - Part 2: Move the calculation of elapsed duration into a static function.
Attachment #9265595 - Attachment description: Bug 1737180 - Part 4: Sample scroll-linked animations based on the apz scroll offsets. → Bug 1737180 - Part 3: Sample scroll-linked animations based on the apz scroll offsets.
Attachment #9267956 - Attachment description: Bug 1737180 - Part 5: Enable OMTA for scroll animations. → Bug 1737180 - Part 4: Enable OMTA for scroll animations.
Attachment #9266876 - Attachment is obsolete: true
Blocks: 1761127

We don't have to lock APZCTreeManager::mMapLock if there is no scroll animation.

Attachment #9267956 - Attachment description: Bug 1737180 - Part 4: Enable OMTA for scroll animations. → Bug 1737180 - Part 5: Enable OMTA for scroll animations.
Attachment #9270157 - Attachment is obsolete: true
Attachment #9267956 - Attachment description: Bug 1737180 - Part 5: Enable OMTA for scroll animations. → Bug 1737180 - Part 4: Enable OMTA for scroll animations.
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e114245b4cec Part 1: Populate scroll timeline information when adding animations for webrender r=hiro https://hg.mozilla.org/integration/autoland/rev/3f30c9187a6d Part 2: Move the calculation of elapsed duration into a static function. r=hiro https://hg.mozilla.org/integration/autoland/rev/93cb779a267c Part 3: Sample scroll-linked animations based on the apz scroll offsets. r=hiro,botond https://hg.mozilla.org/integration/autoland/rev/424f9d2ca137 Part 4: Enable OMTA for scroll animations. r=hiro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: