Closed Bug 1868397 Opened 2 years ago Closed 2 years ago

Avoid copies for software GPUVideoImage with WebGL

Categories

(Core :: Graphics: CanvasWebGL, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

Attachments

(1 file)

Using the infrastructure we will add in bug 1868396, we can avoid copying GPUVideoImage produced by software codecs from the RDD process into the content process and back to the compositor process, since the GPUVideoImage data already exists in compositor process.

This patch makes it so that WebGL that runs in the compositor process
can take advantage of the fact that GPUVideoImage should have an already
created TextureHost between the compositor process and the producing
utility process. For software decoders, this will allow us to avoid a
copy into a shmem from the utility process, and another copy into a
shmem to the compositor process.

Depends on D195558

No longer blocks: 1868396
Depends on: 1868396
Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/07825c8da728 Make WebGL use VideoBridge to avoid copies with GPUVideoImage. r=jgilbert
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

== Change summary for alert #40595 (as of Fri, 08 Dec 2023 06:11:13 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
75% glvideo Mean tick time across 100 ticks: linux1804-64-shippable-qr e10s fission stylo webrender 16.06 -> 4.04
75% glvideo Mean tick time across 100 ticks: linux1804-64-shippable-qr e10s fission stylo webrender-sw 16.03 -> 4.04
75% glvideo Mean tick time across 100 ticks: linux1804-64-shippable-qr e10s fission stylo webgl-ipc webrender 15.92 -> 4.04
74% glvideo Mean tick time across 100 ticks: linux1804-64-qr e10s fission stylo webgl-ipc webrender 15.73 -> 4.06

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=40595

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: