Closed Bug 2002342 Opened 9 months ago Closed 9 months ago

Reduce CanvasTranslator data shmem copies

Categories

(Core :: Graphics: Canvas2D, defect)

defect

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
firefox147 --- fixed

People

(Reporter: lsalzman, Assigned: lsalzman)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.

CanvasChild often creates data shmem transfers for snapshots, which CanvasTranslator
immediately copies into a separate memory buffer as soon as it receives the shmem.

Like CanvasChild, we can keep alive these shmems on the CanvasTranslator side for
a reasonable lifetime to directly use the shmem's memory rather than copy from it,
avoiding the sometimes large costs of the copy.

Unlike CanvasChild, this limits the amount of shmems on the CanvasTranslator side
by a pref beyond which the shmems are still copied to a memory buffer as usual.

Assignee: nobody → lsalzman
Status: NEW → ASSIGNED
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3bf86e525eff https://hg.mozilla.org/integration/autoland/rev/3d350fd70c36 Revert "Bug 2002342 - Reduce CanvasTranslator data shmem copies. r=aosmond" for causing failures at test_animSVGImage.html.
Flags: needinfo?(lsalzman)
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
QA Whiteboard: [qa-triage-done-c148/b147]
Regressions: CVE-2026-4725
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: