-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=88012 Patch by Arvid Nilsson <anilsson@rim.com> on 2012-05-31 Reviewed by George Staikos. Properly set up resource sharing between WebKit thread EGL contexts and the compositing thread EGL context, so the texture ID produced by WebGL and 2D canvas makes sense to the compositing context. There's no public API to supply an EGLContext yet, so we're lucky that the embedder never makes its context un-current. Just grab the current context on the compositing thread and use that as the compositing context. * Api/WebPage.cpp: (BlackBerry::WebKit::WebPagePrivate::setCompositor): * Api/WebPageCompositor.cpp: (BlackBerry::WebKit::WebPageCompositor::WebPageCompositor): (BlackBerry::WebKit::WebPageCompositor::~WebPageCompositor): * Api/WebPage_p.h: (WebPagePrivate): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7da03741