Closed Bug 1869346 Opened 1 year ago Closed 1 year ago

Rework how canvas accesses shared surfaces in the compositor process

Categories

(Core :: Graphics, defect, P3)

defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.

This patch adds plumbing to allow sharing ExternalImageId via
SurfaceDescriptor. This will be used in a future patch by WebGL and
WebGPU to avoid extra copies. It also refactors how CanvasTranslator
gets a SourceSurfaceSharedDataWrapper pointer by ensuring the surfaces
are kept alive long enough even if the CompositorManagerParent actor is
destroyed before CanvasManagerParent and its children. Now we keep the
surfaces around until all of these dependent objects have been freed.

Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/11451cccc88c Rework how canvas accesses shared surfaces in the compositor process. r=gfx-reviewers,lsalzman

Backed out for causing build bustages in ipc_message_utils.h

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: /builds/worker/checkouts/gecko/ipc/chromium/src/chrome/common/ipc_message_utils.h(687,53): error: no member named 'Write' in 'mozilla::ipc::IPDLParamTraits<mozilla::wr::ExternalImageSource>'
Flags: needinfo?(aosmond)

Looks like a missing include in the IPDL.

Flags: needinfo?(aosmond)
Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dab6b48a2a59 Rework how canvas accesses shared surfaces in the compositor process. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Regressions: 1869933
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: