Closed Bug 1811160 Opened 1 year ago Closed 1 year ago

Disable out-of-process WebGL and accelerated canvas when GPU process does not exists on android

Categories

(Core :: Graphics: CanvasWebGL, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

On Android, GPU process exists by default. When GPU process does not exist, an error should disable GPU process.

On Android, WebGL handling process could easily crash. The crash could trigger disable GPU process. Current out-of-process WebGL implementation creates WebGLParent in parent process. Then a crash in parent process could be triggered by WebGL. Then it seems better to disable out-of-process WebGL when GPU process does not exist.

And it seems also better to disable accelerated canvas, since it uses WebGL for acceleration.

In remote canvas case, it is disabled when GPU process does not exist.
https://searchfox.org/mozilla-central/rev/daf613efc5c358f3a94961d73b90472c00703838/gfx/thebes/gfxPlatform.cpp#2471

Assignee: nobody → sotaro.ikeda.g
Blocks: gpu-canvas
Blocks: 1795223

This is a good idea.

Pushed by sikeda.birchill@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6868e318973a
Disable out-of-process WebGL and accelerated canvas when GPU process does not exists on android r=gfx-reviewers,lsalzman
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Blocks: 1793679
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: