Android: Expose underlying EGL context in API

This CL adds a way to extract the underlying android.opengl.EGLContext
and javax.microedition.khronos.egl.EGLContext for EglBase14 and
EglBase10 respectively. The reason is that clients can't be expected to
use only WebRTC's OpenGL code and might need to integrate with their
own GL code.

Bug: None
Change-Id: Ie00a564de45a090683542a52005da7e43c586ced
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127888
Commit-Queue: Magnus Jedvert <magjed@webrtc.org>
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27205}
This commit is contained in:
Magnus Jedvert
2019-03-20 11:17:02 +01:00
committed by Commit Bot
parent d09bc55d3b
commit 98d85fe9a4
11 changed files with 111 additions and 41 deletions

View File

@ -162,7 +162,7 @@ public final class AndroidVideoDecoderInstrumentationTest {
TEST_FRAMES = generateTestFrames();
eglBase = new EglBase14(null, EglBase.CONFIG_PLAIN);
eglBase = EglBase.createEgl14(EglBase.CONFIG_PLAIN);
eglBase.createDummyPbufferSurface();
eglBase.makeCurrent();