Closed Bug 1746538 Opened 3 years ago Closed 2 years ago

Make WebGPU allocate IPDL actors via PCanvasManager

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

Attachments

(1 file)

No description provided.

Similar to PWebGL, we want PCanvasManager to manage the PWebGPU
protocol. This will allow us to reuse the machinery that works for both
the main thread, and arbitrary worker threads to create PWebGPU
protocols.

For now, the only owner is still the main thread, so it should work very
similarly as to how it does with PCompositorBridge.

This patch also introduces some quality of life changes, such as making
the protocol ref-counted, and avoiding respinning the wheel for
CanSend() for IPDL actors.

Summary: Make WebGPU accessible via OffscreenCanvas → Make WebGPU allocate IPDL actors via PCanvasManager
Attachment #9255834 - Attachment description: Bug 1746538 - Part 1. Make PWebGPU managed by PCanvasManager. → Bug 1746538 - Make PWebGPU managed by PCanvasManager.
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8f91a09ba553
Make PWebGPU managed by PCanvasManager. r=kvark
Blocks: 1753302
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: