Closed Bug 1760907 Opened 3 years ago Closed 3 years ago

Locking OffscreenCanvasDisplayHelper's mMutex is expensive / showing in profiles

Categories

(Core :: Graphics: Canvas2D, defect, P3)

defect

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

Attachments

(1 file)

mstange showed me a profile where locking OffscreenCanvasDisplayHelper::mMutex on the main thread can be expensive when rebuilding the display list. We only need it to get the context type and the ImageContainer, both of which we could easily cache on the HTMLCanvasElement.

Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f8716c6002c4 Avoid mutex contention on display list updates for OffscreenCanvas. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: