Closed Bug 1519760 Opened 8 months ago Closed 8 months ago

Lazily initialize D2D DrawTargets

Categories

(Core :: Graphics, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: bas.schouten, Assigned: bas.schouten)

References

Details

Attachments

(1 file)

We should only lazily initialize D2D DrawTargets, and keep a DeviceContext around for creation of textures and gradient stops. This should help a lot with lock contention. On slower machines we are seeing lock contention show up considerably upon DeviceContext creation, see also: https://perfht.ml/2FsohuS

Priority: -- → P3
Pushed by bschouten@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/42e89a539b98
Attempt to initialize D2D off the main thread as much as possible. r=rhunt
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Depends on: 1521774
Depends on: 1526656
Depends on: 1535866
You need to log in before you can comment on or make changes to this bug.