Closed Bug 1400411 Opened 7 years ago Closed 7 years ago

Stop using a DrawTargetSkia inside of TextDrawTarget

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- unaffected
firefox58 --- fixed

People

(Reporter: jrmuizel, Assigned: Gankra)

References

Details

(Whiteboard: [wr-mvp])

Attachments

(2 files)

DrawTargetSkia::Init accounts for 26% of nsDisplayText::nsDisplayText time.

Gankro has a patch to fix this.
Blocks: 1400413
Whiteboard: [wr-mvp] [triage]
Another 4.8% of the total paint time is spent deleting the DrawTargetSkia's. Fixing this should give us reasonably good performance improvement and is pretty low hanging fruit.
Assignee: nobody → a.beingessner
I tried to test this patch out as best I could but webrendest gecko is pretty unstable right now.
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [wr-mvp] [triage] → [wr-mvp]
Target Milestone: --- → mozilla57
Comment on attachment 8908997 [details]
Bug 1400411 - stop mocking most of DrawTarget.

https://reviewboard.mozilla.org/r/180608/#review185794
Attachment #8908997 - Flags: review?(jmuizelaar) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8a0b8dfa2d7d
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Depends on: 1400917
This is causing us to crash on tofu and SVG fonts. We never handled them properly but crashing is a lot worse.
Backed out at Alexis' request.
https://hg.mozilla.org/integration/mozilla-inbound/rev/7fba2073e87027ba4d61196df519f5b32560857d
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla57 → ---
Depends on: 1400400
Status: REOPENED → ASSIGNED
Target Milestone: --- → mozilla57
Target Milestone: mozilla57 → ---
Target Milestone: --- → mozilla57
I have a new patch for this based on my patches in Bug 1400382 that seems to work well. Will post when that lands.
Comment on attachment 8911815 [details]
Bug 1400411 - text-layers: fallback if SVG fonts or tofu is found.

https://reviewboard.mozilla.org/r/183242/#review188400
Attachment #8911815 - Flags: review?(jmuizelaar) → review+
Note to checkin people, this is based off of Bug 1400382, which is still inbound.
Keywords: checkin-needed
Hitting a debug assert, investigating.
Keywords: checkin-needed
Ah, it was just Bug 1402004. Should be good.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/0caa5a0f9ccb
text-layers: fallback if SVG fonts or tofu is found. r=jrmuizel
https://hg.mozilla.org/integration/autoland/rev/0d7f60023a14
stop mocking most of DrawTarget. r=jrmuizel
Keywords: checkin-needed
Depends on: 1403259
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: