Re: [webkit-dev] How to enable WebGL on WebKit QT port?

2011-05-03 Thread Benjamin Poulain
On Tue, May 3, 2011 at 1:22 AM, Won J Jeon wjj...@gmail.com wrote:

 Thanks for the update. BTW, is there any switch that I need to turn on in
 order to enable WebGL support with QT port?

 I built the code by using '--3d-canvas --3d-rendering' switches and
 launched QtTestBrowser by using 'run-launcher'.
 However, when I access the WebGL page, it says 'It doesn't appear your
 computer can support WebGL'.
 I already double-checked that WebGL works with chromium on my Ubuntu
 desktop.


In order to get WebGL with Qt and have good performance you must use:
+QGraphicsWebView
+QGLWidget on the viewport of QGraphicsView
+accelerated compositing
+enable WebGL
(you can enable all of this from the command line of QTestBrowser of via the
menu).

I suggest you to ask your question the mailing list webkit-qt. The main
contributors of the WebGL support of Qt are on that list.

cheers,
Benjamin
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] How to enable WebGL on WebKit QT port?

2011-05-02 Thread Won J Jeon
I tried to build a WebKit QT port with WebGL support by enabling
'--3d-canvas' and '--3d-rendering' (--no-accelerated-2d-canvas by default)
but it has the following error on GraphicsContext3DQt.cpp:

../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp: In
constructor
‘WebCore::GraphicsContext3D::GraphicsContext3D(WebCore::GraphicsContext3D::Attributes,
WebCore::HostWindow*, bool)’:
../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:617:
error: no matching function for call to
‘WTF::OwnPtrWebCore::GraphicsContext3DInternal::OwnPtr(WebCore::GraphicsContext3DInternal*)’
../../../Source/JavaScriptCore/wtf/OwnPtr.h:57: note: candidates are:
WTF::OwnPtrT::OwnPtr(const WTF::OwnPtrtypename
WTF::RemovePointerT::Type) [with T = WebCore::GraphicsContext3DInternal]
../../../Source/JavaScriptCore/wtf/OwnPtr.h:48: note:
WTF::OwnPtrT::OwnPtr() [with T = WebCore::GraphicsContext3DInternal]
make[1]: *** [obj/release/GraphicsContext3DQt.o] Error 1

Is there any other steps that I need to follow in order to make WebGL
working?

Regards,
Won
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to enable WebGL on WebKit QT port?

2011-05-02 Thread David Levin
It looks like there need to be a few build fixes in that code due to recent
changes in the code.

See http://trac.webkit.org/changeset/85343 for the types of changes to be
done.

Then feel free to submit a patch to fix this for others --
http://www.webkit.org/coding/contributing.html

dave



On Mon, May 2, 2011 at 11:32 AM, Won J Jeon wjj...@gmail.com wrote:

 I tried to build a WebKit QT port with WebGL support by enabling
 '--3d-canvas' and '--3d-rendering' (--no-accelerated-2d-canvas by default)
 but it has the following error on GraphicsContext3DQt.cpp:

 ../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp: In
 constructor
 ‘WebCore::GraphicsContext3D::GraphicsContext3D(WebCore::GraphicsContext3D::Attributes,
 WebCore::HostWindow*, bool)’:
 ../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:617:
 error: no matching function for call to
 ‘WTF::OwnPtrWebCore::GraphicsContext3DInternal::OwnPtr(WebCore::GraphicsContext3DInternal*)’
 ../../../Source/JavaScriptCore/wtf/OwnPtr.h:57: note: candidates are:
 WTF::OwnPtrT::OwnPtr(const WTF::OwnPtrtypename
 WTF::RemovePointerT::Type) [with T = WebCore::GraphicsContext3DInternal]
 ../../../Source/JavaScriptCore/wtf/OwnPtr.h:48: note:
 WTF::OwnPtrT::OwnPtr() [with T = WebCore::GraphicsContext3DInternal]
 make[1]: *** [obj/release/GraphicsContext3DQt.o] Error 1

 Is there any other steps that I need to follow in order to make WebGL
 working?

 Regards,
 Won


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to enable WebGL on WebKit QT port?

2011-05-02 Thread Won J Jeon
Dear David,

Thanks for your response. However, my code base is r85509 and even with the
code changes that you mentioned, I got the same error message. Any idea?

Regards,
Won


On Mon, May 2, 2011 at 11:37 AM, David Levin le...@chromium.org wrote:

 It looks like there need to be a few build fixes in that code due to recent
 changes in the code.

 See http://trac.webkit.org/changeset/85343 for the types of changes to be
 done.

 Then feel free to submit a patch to fix this for others --
 http://www.webkit.org/coding/contributing.html

 dave



 On Mon, May 2, 2011 at 11:32 AM, Won J Jeon wjj...@gmail.com wrote:

 I tried to build a WebKit QT port with WebGL support by enabling
 '--3d-canvas' and '--3d-rendering' (--no-accelerated-2d-canvas by default)
 but it has the following error on GraphicsContext3DQt.cpp:

 ../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp: In
 constructor
 ‘WebCore::GraphicsContext3D::GraphicsContext3D(WebCore::GraphicsContext3D::Attributes,
 WebCore::HostWindow*, bool)’:
 ../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:617:
 error: no matching function for call to
 ‘WTF::OwnPtrWebCore::GraphicsContext3DInternal::OwnPtr(WebCore::GraphicsContext3DInternal*)’
 ../../../Source/JavaScriptCore/wtf/OwnPtr.h:57: note: candidates are:
 WTF::OwnPtrT::OwnPtr(const WTF::OwnPtrtypename
 WTF::RemovePointerT::Type) [with T = WebCore::GraphicsContext3DInternal]
 ../../../Source/JavaScriptCore/wtf/OwnPtr.h:48: note:
 WTF::OwnPtrT::OwnPtr() [with T = WebCore::GraphicsContext3DInternal]
 make[1]: *** [obj/release/GraphicsContext3DQt.o] Error 1

 Is there any other steps that I need to follow in order to make WebGL
 working?

 Regards,
 Won


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to enable WebGL on WebKit QT port?

2011-05-02 Thread David Levin
On Mon, May 2, 2011 at 1:39 PM, Won J Jeon wjj...@gmail.com wrote:

 Dear David,

 Thanks for your response. However, my code base is r85509 and even with the
 code changes that you mentioned, I got the same error message. Any idea?


Yes, there still need to be some changes to fix the build that you are
doing.

Perhaps you can do them and submit a patch with the fix --
http://www.webkit.org/coding/contributing.html

http://trac.webkit.org/changeset/85343 will not fix your problem. However,
you can see what was done in it to fix similar problems in other places in
the code.

dave
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to enable WebGL on WebKit QT port?

2011-05-02 Thread Osztrogonac Csaba

Hi,

Sorry for the inconvenience, I fixed it: http://trac.webkit.org/changeset/85526
Unfortunately this code path isn't guarded by buildbot now.

br,
Ossy

Won J Jeon írta:
I tried to build a WebKit QT port with WebGL support by enabling 
'--3d-canvas' and '--3d-rendering' (--no-accelerated-2d-canvas by 
default) but it has the following error on GraphicsContext3DQt.cpp:


../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp: In 
constructor 
'WebCore::GraphicsContext3D::GraphicsContext3D(WebCore::GraphicsContext3D::Attributes, 
WebCore::HostWindow*, bool)':
../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:617: 
error: no matching function for call to 
'WTF::OwnPtrWebCore::GraphicsContext3DInternal::OwnPtr(WebCore::GraphicsContext3DInternal*)'
../../../Source/JavaScriptCore/wtf/OwnPtr.h:57: note: candidates are: 
WTF::OwnPtrT::OwnPtr(const WTF::OwnPtrtypename 
WTF::RemovePointerT::Type) [with T = WebCore::GraphicsContext3DInternal]
../../../Source/JavaScriptCore/wtf/OwnPtr.h:48: note: 
WTF::OwnPtrT::OwnPtr() [with T = WebCore::GraphicsContext3DInternal]

make[1]: *** [obj/release/GraphicsContext3DQt.o] Error 1

Is there any other steps that I need to follow in order to make WebGL 
working?


Regards,
Won

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to enable WebGL on WebKit QT port?

2011-05-02 Thread Won J Jeon
Dear Ossy,

Thanks for the update. BTW, is there any switch that I need to turn on in
order to enable WebGL support with QT port?

I built the code by using '--3d-canvas --3d-rendering' switches and launched
QtTestBrowser by using 'run-launcher'.
However, when I access the WebGL page, it says 'It doesn't appear your
computer can support WebGL'.
I already double-checked that WebGL works with chromium on my Ubuntu
desktop.

Regards,
Won

2011/5/2 Osztrogonac Csaba o...@inf.u-szeged.hu

 Hi,

 Sorry for the inconvenience, I fixed it:
 http://trac.webkit.org/changeset/85526
 Unfortunately this code path isn't guarded by buildbot now.

 br,
 Ossy

 Won J Jeon írta:

  I tried to build a WebKit QT port with WebGL support by enabling
 '--3d-canvas' and '--3d-rendering' (--no-accelerated-2d-canvas by default)
 but it has the following error on GraphicsContext3DQt.cpp:

 ../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp: In
 constructor
 'WebCore::GraphicsContext3D::GraphicsContext3D(WebCore::GraphicsContext3D::Attributes,
 WebCore::HostWindow*, bool)':
 ../../../Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:617:
 error: no matching function for call to
 'WTF::OwnPtrWebCore::GraphicsContext3DInternal::OwnPtr(WebCore::GraphicsContext3DInternal*)'
 ../../../Source/JavaScriptCore/wtf/OwnPtr.h:57: note: candidates are:
 WTF::OwnPtrT::OwnPtr(const WTF::OwnPtrtypename
 WTF::RemovePointerT::Type) [with T = WebCore::GraphicsContext3DInternal]
 ../../../Source/JavaScriptCore/wtf/OwnPtr.h:48: note:
 WTF::OwnPtrT::OwnPtr() [with T = WebCore::GraphicsContext3DInternal]
 make[1]: *** [obj/release/GraphicsContext3DQt.o] Error 1

 Is there any other steps that I need to follow in order to make WebGL
 working?

 Regards,
 Won

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev