Closed Bug 1763414 Opened 2 years ago Closed 2 years ago

Allow gfxFontEntry instances to be used from multiple threads simultaneously

Categories

(Core :: Layout: Text and Fonts, defect, P2)

defect

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

For offscreen-canvas text, we'll need access to the gfxFontEntry instances for whatever fonts are being used.

In principle gfxFontEntry is "inert" once constructed, so (read) access from multiple threads should be allowable; however, a lot of the subsidiary data in the font entry (loaded font tables, charmaps, SVG or color glyph data, math layout data, etc) is loaded lazily on first use. So we'll need to ensure this is done with appropriate locking and/or atomic operations.

Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1b885ef9e84d
Make gfxFontEntry instances usable from multiple threads. r=lsalzman
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
Depends on: 1766875
Regressions: 1770709
Regressions: 1780540
Regressions: 1835110
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: