Closed Bug 1405927 Opened 7 years ago Closed 7 years ago

Remove Actual Text-Layers

Categories

(Core :: Graphics: WebRender, enhancement, P1)

enhancement

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.
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)
Assignee: nobody → a.beingessner
Blocks: 1392723
Whiteboard: [wr-mvp] [triage]
I've pushed up the current impl without properly removing TextLayer, lmk what y'all want.
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+
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [wr-mvp] [triage] → [wr-mvp]
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+
Keywords: checkin-needed
rebased
Blocks: 1406231
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
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
Flags: needinfo?(matt.woodrow)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: