Closed
Bug 1405927
Opened 7 years ago
Closed 7 years ago
Remove Actual Text-Layers
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox57 | --- | unaffected |
firefox58 | --- | unaffected |
People
(Reporter: Gankra, Assigned: Gankra)
References
Details
(Whiteboard: [wr-mvp])
Attachments
(2 files)
Initially text-layers were useful for webrender to do text, but since we've moved to layers-free, they're now just holding back the webrender impl. In particular TextDrawTarget needs to store glyphs in a "pure" gecko format so that they can be sent to the text-layers code, which in turn forces us to create a second array of glyphs in the wr format.
If we remove text-layers, we can just store glyphs directly in the wr format, eliminating a fairly expensive allocation and copy per text-run.
At this point it's fairly clear to me that text-layers are missing a ton of features, and would be a lot of work to get production ready. I'd rather just take them out now so we can focus our efforts.
Assignee | ||
Comment 1•7 years ago
|
||
Hey mattwoodrow, for my purposes it's sufficient to rip out GetLayerState and BuildLayer from nsDisplayText. However this leaves the actual TextLayer/BasicTextLayer types floating around in the codebase. I'm not sure if anything other than nsDisplayText actually uses such a layer, or if you want to preserve all the glue for TextLayer a little longer. Thoughts?
Flags: needinfo?(matt.woodrow)
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage]
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•7 years ago
|
||
I've pushed up the current impl without properly removing TextLayer, lmk what y'all want.
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8915592 [details]
Bug 1405927 - Change PushGlyphs to take webrender formats.
https://reviewboard.mozilla.org/r/186786/#review191900
Attachment #8915592 -
Flags: review?(jmuizelaar) → review+
Updated•7 years ago
|
Updated•7 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [wr-mvp] [triage] → [wr-mvp]
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8915591 [details]
Bug 1405927 - Remove TextLayer support from nsDisplayText.
https://reviewboard.mozilla.org/r/186784/#review191990
Attachment #8915591 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 9•7 years ago
|
||
rebased
Comment 10•7 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/e41db689a662
Remove TextLayer support from nsDisplayText. r=mattwoodrow
https://hg.mozilla.org/integration/autoland/rev/54cfd7571517
Change PushGlyphs to take webrender formats. r=jrmuizel
Keywords: checkin-needed
![]() |
||
Comment 11•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e41db689a662
https://hg.mozilla.org/mozilla-central/rev/54cfd7571517
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(matt.woodrow)
You need to log in
before you can comment on or make changes to this bug.
Description
•