[Webkit-unassigned] [Bug 50364] Throw webglcontextlost and webglcontextrestored events when a WebGL context is lost and restored.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 2 11:27:54 PST 2010


Kenneth Russell <kbr at google.com> changed:

           What    |Removed                     |Added
  Attachment #75342|review?                     |review-
               Flag|                            |

--- Comment #2 from Kenneth Russell <kbr at google.com>  2010-12-02 11:27:54 PST ---
(From update of attachment 75342)
As we've discussed offline you should start a timer when the context is lost -- but only if the user has registered a webglcontextrestored callback on the canvas. The timer would poll periodically to see whether it can successfully recreate the context, and once it does, send the webglcontextrestored event. You can find examples of setting up periodic callbacks in the implementation of DOMWindow::setInterval (WebCore/page/DOMWindow.cpp). The current implementation relies on the app making WebGL calls against the lost context in order to discover that the context has been restored, which isn't supposed to be the programming model according to the WebGL spec.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list