Closed Bug 1519760 Opened 6 years ago Closed 6 years 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: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Depends on: 1521699
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.

Attachment

General

Created:
Updated:
Size: