[webkit-qt] WebGL with QtWebkit (QT5.0)

Simon Hausmann simon.hausmann at digia.com
Fri Jan 4 00:47:31 PST 2013


On Friday, January 04, 2013 09:28:03 AM Harisha Navilarekallu wrote:
> Hi,
> 
> Does WebGL works with QtWebKit (WebKit1) on Qt5.0 EGLFS plugin?
> When I tried with :
> QtTestBrowser -graphicsbased -gl-viewport -webgl <WEBPAGE>
> OR
> QtTestBrowser -graphicsbased -gl-viewport -tiled-backing-store
> -viewport-update-mode BoundingRect -webgl <WEBPAGE>
> 
> Both didnt work. It returns error with No-Context.
> 
> In WebGLRenderingContext.cpp, the condition :
>    if (!context || !context->makeContextCurrent())
> is always true and hence returns null pointer.
> 
> The context is false as surface is not allocated in "
> GraphicsContext3DPrivate::GraphicsContext3DPrivate"
> 
> 
> Since I dont understand much of the architecture, i am not sure if, I am
> doing right thing.
> 
> Can any body give some insight?

WebGL requires an implementation of WebCore's GraphicsSurface, which is 
platform specific. In the Qt port, GraphicsSurface is currently only 
implemented for X-Windows, Mac OS X and Windows. Contributions to new 
platforms/windowing systems are welcome :)


Simon


More information about the webkit-qt mailing list