Closed Bug 1823215 Opened 2 years ago Closed 2 years ago

Use ElementOrArray to manage the glyph run(s) in gfxTextRun

Categories

(Core :: Graphics: Text, task)

task

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(3 files)

Bug 1822184 introduced the ElementOrArray<T> class, which serves a bit like an AutoTArray<T, 1>, but is memmovable, and more compact because it doesn't store both an array header and an inline buffer.

This provides similar functionality to how gfxTextRun manages its GlyphRun records.

So having created the ElementOrArray<T> template, we can switch gfxTextRun to use this and simplify its management of the runs.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c15d9a19b49 Extract ElementOrArray<T> from CanvasRenderingContext2D into gfxUtils.h so it can also be used elsewhere in gfx/thebes. r=gfx-reviewers,lsalzman https://hg.mozilla.org/integration/autoland/rev/8bb283e5ea91 Add API to ElementOrArray to support use in gfxTextRun to store the glyph run(s). r=gfx-reviewers,lsalzman https://hg.mozilla.org/integration/autoland/rev/654284175f6e Use ElementOrArray<T> to simplify the management of glyphrun(s) in gfxTextRun. r=gfx-reviewers,lsalzman
Blocks: 1823270
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: