Closed Bug 1818488 Opened 2 years ago Closed 2 years ago

Hoist access to gfxContext::GetTextDrawer() out of the glyph-rendering inner loop

Categories

(Core :: Graphics: Text, defect)

defect

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

Attachments

(1 file)

Noticed in profiles such as https://share.firefox.dev/3K8L3te that calling GetTextDrawer() is a (small but) measurable cost. We can hoist this up into the TextRunDrawParams and only retrieve it once, instead of per-glyph.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c76726c62951 Hoist access to gfxContext::GetTextDrawer() out of the glyph-rendering inner loop. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: