Closed Bug 1795296 Opened 2 years ago Closed 2 months ago

OffscreenCanvas should try to use Direct2D backend if possible

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

Attachments

(1 file)

We appear to not try to use the Direct2D backend, because we actually need an HTMLCanvasElement to get the WindowRenderer:

https://searchfox.org/mozilla-central/rev/50d8456970a33fde950ec483b46ffd324f79c0b5/dom/canvas/CanvasRenderingContext2D.cpp#1560

The code doesn't look to actively require access to the WindowRenderer (WebRenderLayerManager) so we can probably make a decision for worker threads.

I haven't done an exhaustive analysis so there may be more globals that we need to make threadlocal or add mutex protection for.

Flags: needinfo?(aosmond)
See Also: → 1794442

The foundation will be laid in bug 1855742 and we can enable it here / update tests.

Depends on: 1855742
Flags: needinfo?(aosmond)
Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/05b607c3bbe6
Enable Direct2D backend with OffscreenCanvas. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
Regressions: 1870824
Regressions: 1870827
Regressions: 1870833

Backed out 12 changesets (Bug 1795296, Bug 1855742) as requested by aosmond a=backout
Link: https://hg.mozilla.org/mozilla-central/rev/3fd71c45d9fc05e5912ec6c9ba191a9a3a7f2038

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 123 Branch → ---
Regressions: 1870872
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/223489055d61
Enable Direct2D backend with OffscreenCanvas. r=gfx-reviewers,lsalzman
Status: REOPENED → RESOLVED
Closed: 4 months ago2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: