Index: webrtc/sdk/android/api/org/webrtc/EglBase.java |
diff --git a/webrtc/sdk/android/api/org/webrtc/EglBase.java b/webrtc/sdk/android/api/org/webrtc/EglBase.java |
index 3e221c2f478d368cca0f1c3534dc15df8c55b740..619022c770eb32bfb29c5861e8b782c65cadb4c5 100644 |
--- a/webrtc/sdk/android/api/org/webrtc/EglBase.java |
+++ b/webrtc/sdk/android/api/org/webrtc/EglBase.java |
@@ -116,12 +116,30 @@ public abstract class EglBase { |
} |
/** |
+ * Explicitly create a root EGl 1.0 context with the specified config attributes |
+ * and shared context. |
+ */ |
+ public static EglBase createEgl10( |
+ javax.microedition.khronos.egl.EGLContext sharedContext, int[] configAttributes) { |
+ return new EglBase10(new EglBase10.Context(sharedContext), configAttributes); |
+ } |
+ |
+ /** |
* Explicitly create a root EGl 1.4 context with the specified config attributes. |
*/ |
public static EglBase createEgl14(int[] configAttributes) { |
return new EglBase14(null /* shaderContext */, configAttributes); |
} |
+ /** |
+ * Explicitly create a root EGl 1.4 context with the specified config attributes |
+ * and shared context. |
+ */ |
+ public static EglBase createEgl14( |
+ android.opengl.EGLContext sharedContext, int[] configAttributes) { |
+ return new EglBase14(new EglBase14.Context(sharedContext), configAttributes); |
+ } |
+ |
public abstract void createSurface(Surface surface); |
// Create EGLSurface from the Android SurfaceTexture. |