Closed Bug 1653737 Opened 6 years ago Closed 6 years ago

Add vsync output time to VsyncEvent

Categories

(Core :: Graphics, task)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

Details

Attachments

(2 files)

See bug 1653355. In this bug I want to land the patches that add the infrastructure but don't change the behavior for video.

This timestamp is provided by the system on macOS, and estimated as "the next
vsync" on all other platforms.

On macOS, the output time increments in very consistent amounts. The timestamp
is independent of when exactly the vsync callback ends up running, so it is less
vulnerable to unfortunate thread scheduling.
This makes it a more reliable source for picking video frames, for example.

Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/d917b77f7fa4 Add output time to VsyncEvent. r=nical https://hg.mozilla.org/integration/autoland/rev/18368027eeec Expose vsync output time from CompositorVsyncScheduler. r=nical
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: