[Webkit-unassigned] [Bug 216106] [iOS WK1] Crashes when using ANGLE WebGL from another thread

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 3 10:56:28 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=216106

--- Comment #7 from Kenneth Russell <kbr at google.com> ---
Good suggestions Kimmo. I haven't thought through all the implications of your suggestion but a few points:

1) There's no good point to call EGL_Initialize on the main thread if a touch event handler is the first one to call WebGL.

2) ANGLE would have to be changed to call [EAGLContext setCurrentContext:] during EGL_MakeCurrent. With its current assumptions about single-threadedness and context virtualization, it's called only once, during EGL_Initialize. There will surely need to be other changes to make this work properly.

3) Based on dino@'s point about UIKit being the one to grab the WebThreadLock during touch event dispatch, it's not clear there's a good point in WebKit to call EGL_MakeCurrent(null) on that thread. (Maybe there is.) Also not sure about when to do this on the main thread - who grabs / releases the WebThreadLock there?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200903/0da6e820/attachment-0001.htm>


More information about the webkit-unassigned mailing list