Review Request: Add support for building libplasma with GLES2
Jammy Zhou
jammy.zhou at linaro.org
Thu Feb 24 02:25:58 GMT 2011
> On Feb. 23, 2011, 5:29 p.m., Martin Gräßlin wrote:
> > The GLApplet seems to be unmaintained and is nowhere used in KDE (see http://lxr.kde.org/ident?i=GLApplet ). There was once one demo applet using it, but it has vanished.
> >
> > GLApplet uses OpenGL only for glClear before passing the QPainter to the Plasmoid. I think we could just remove the background clearing and require it from the applet and drop the link to OpenGL completely.
> >
> > Another thing is that given that it is just not used adding the complete GLES detection and building to Plasma does not make sense. It's probably better just to add a cmake option to disable building of the plasma applet (maybe using the mobile profile for that?).
> >
> > The CMake stuff to find GLES is unfortunately not in a state to be included in kdelibs. I contacted build system some time ago and they gave me a nice list of things which need to be improved and it's still on my TODO stack :-(
> >
> > It would be nice to have some input from Plasma devs here. Could you please add the Plasma group to the review?
I'm a newbie for KDE development, what's GLApplet originally used for? And if GLApplet is really obsolete, maybe we'd better retire it to remove the dependency of libplasma on libGL. :)
I also considered to remove glClear in GLApplet, but I'm not sure if it will cause some regressions, so I prepared this change.
Anyway, waiting for inputs from plasma-devs to make final decision.
- Jammy
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100705/#review1612
-----------------------------------------------------------
On Feb. 24, 2011, 2:07 a.m., Jammy Zhou wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100705/
> -----------------------------------------------------------
>
> (Updated Feb. 24, 2011, 2:07 a.m.)
>
>
> Review request for kdelibs and Plasma.
>
>
> Summary
> -------
>
> After build kwin with GLES2 code path, the kwin binary still has dependency on libGL.so, which is introduced by libplasma.so. Then we also need to add GLES2 support to libplasma, so that kwin/plasma only has dependency on libGLESv2.so in this case.
>
> The new option "BUILD_PLASMA_WITH_OPENGLES" added in attached patch is disabled by default, and distributions can turn it on when do packaging for OpenGL ES2.0 support.
>
>
> Diffs
> -----
>
> CMakeLists.txt 2dcc5ec
> cmake/modules/FindOpenGLES.cmake PRE-CREATION
> includes/CMakeLists.txt 9954c37
> plasma/CMakeLists.txt 8e6b0d7
>
> Diff: http://git.reviewboard.kde.org/r/100705/diff
>
>
> Testing
> -------
>
> After turn the "BUILD_PLASMA_WITH_OPENGLES" option on, kwin-gles has no dependency on libGL.so now. And by default, libplasma still depends on libGL.so when run ldd.
>
>
> Thanks,
>
> Jammy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110224/ebf76999/attachment.htm>
-------------- next part --------------
_______________________________________________
Plasma-devel mailing list
Plasma-devel at kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
More information about the kde-core-devel
mailing list