Make WebRender text items represent glyph positions relative to the prim rect instead of absolutely
Categories
(Core :: Graphics: WebRender, enhancement)
Tracking
()
People
(Reporter: jrmuizel, Assigned: jrmuizel)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
|
7.92 KB,
patch
|
Details | Diff | Splinter Review |
Currently WebRender needs to do this subtraction when it receives the glyphs.
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
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.
| Assignee | ||
Comment 3•6 years ago
|
||
This moves the offset earlier so that it only needs to happen once and not per glyph
| Assignee | ||
Comment 4•6 years ago
|
||
This version just uses a framePt of (0,0) to achieve the same affect.
Comment 5•6 years ago
|
||
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..?
| Assignee | ||
Comment 6•6 years ago
|
||
The latest version has failures here: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b8857f5124c612e47ae4a81b3c371bdba74bee5b&selectedJob=287400038
| Assignee | ||
Comment 7•6 years ago
|
||
Doing it later in the pipeline seems to reduce failures but still has them: https://treeherder.mozilla.org/#/jobs?repo=try&revision=742776e69b58e5abc622ce93b36f6556d2a82f40&selectedJob=287461755
Updated•3 years ago
|
Updated•2 years ago
|
Description
•