Build chromium against native EGL / GLES

530 views
Skip to first unread message

zpm.ps...@gmail.com

unread,
Aug 23, 2016, 1:19:13 PM8/23/16
to Graphics-dev
Hi all.

I'm currently trying to get Chromium (with hardware rendering: want WebGL) running on my raspberry pi.
It works quite good actually, when using the experimental Desktop GL driver that comes with the lastest raspbian.
But as the name implies, that driver is still experimental and breaks some of my other stuff if I enable it.

So I was wondering if there is way to build chromium against the "native" EGL + GLESv2 on the raspberry. Running X server is fine, I just want to get rid of the Desktop GL dependency.

I have learned from the architecture docs, that on Windows ANGLE is used, which is an EGL/GLES emulation on top DX. So, in theory, chromium does not depend on Desktop GL but can also run on GLES (via ANGLE), or does it?

Does anyone have experience with this?
Would it be feasible to build against libEGL and libGLESv2 instead of ANGLE, or is there any 'complex' porting work required to get this working?

Thanks!


Victor Miura

unread,
Aug 23, 2016, 1:27:25 PM8/23/16
to zpm.ps...@gmail.com, Graphics-dev
Chromium can run against native EGL / GLES.  We do this on Android.  Linux defaults to using the Desktop GL implementation but it should be possible to configure to use GLES if it's available on the Pi.

Sunny Sachanandani

unread,
Aug 23, 2016, 1:35:10 PM8/23/16
to Victor Miura, zpm.ps...@gmail.com, Graphics-dev
Try using the --use-gl=egl flag.

zpm.ps...@gmail.com

unread,
Aug 23, 2016, 1:42:46 PM8/23/16
to Graphics-dev, zpm.ps...@gmail.com
wow, didn't thought that it is that easy.
I will give it a try :D
Reply all
Reply to author
Forward
0 new messages