[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] webglcontextrestored, WEBKIT_lose_context

On Tue, Apr 12, 2011 at 9:15 PM, Alexey Marinichev <amarinichev@chromium.org> wrote:
Regarding the restoreContext method, what would happen if the browser is unable to restore the context?

restoreContext doesn't synchronously restore the context.  It just removes the block put in place by loseContext, allowing the browser to restore the context in the future along the normal async context-recovery path.  If the context can't be restored, it just stays lost.

(If that happens when you're using these methods to test code, it could be confusing; it may want to log a warning to the console if that happens.)

Maybe a better name for the method is something like "allowRestoreContext".

Glenn Maynard