Open Bug 1612513 Opened 6 years ago Updated 2 years ago

Make WebRender text items represent glyph positions relative to the prim rect instead of absolutely

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement

Tracking

()

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

Currently WebRender needs to do this subtraction when it receives the glyphs.

Attached patch PoC (obsolete) — Splinter Review
Assignee: nobody → jmuizelaar

This proof of concept subtracts the primitive rect origin from every glyph position when we're constructing the glyph buffer on the Gecko side. Since we store the glyph positions using advances in the TextRun it should be possible to just do the subtraction from the initial point instead of for every glyph.

Attached patch PoC v2 (obsolete) — Splinter Review

This moves the offset earlier so that it only needs to happen once and not per glyph

Attachment #9123802 - Attachment is obsolete: true
Attached patch POC v3Splinter Review

This version just uses a framePt of (0,0) to achieve the same affect.

Attachment #9123826 - Attachment is obsolete: true

NB part of the motivation of this is that it would led us build the interning key without actually creating a new Vec for the data. Although miko's interning work might make that unnecessary..?

Severity: normal → S3
Blocks: wr-dl-bypass
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: