Support creation of 'headless' GLContexts

NEW
Unassigned

Status

()

Core
Canvas: WebGL
--
minor
4 years ago
4 years ago

People

(Reporter: jgilbert, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
Currently, when you request a GLContext of a certain size, if the size is too big, we fail to give back a context. If we want to fallback to reducing the resolution if the requested size is too big (like for WebGL), we need to either create and destroy a large number of contexts trying to reduce the size to within acceptable limits, or start with a dummy 1x1 GLContext, and then start trying to resize to the requested size before reducing. (wasting time allocating and setting up a bunch of buffers that we'll usually never use)

What we really want is a headless context, which we can then try to add a backbuffer to after its created.
You need to log in before you can comment on or make changes to this bug.