Index: talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java |
diff --git a/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java b/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java |
index 83999ece9848f661b762deebd77e22505069b6de..0ac50d08d72085ea643c04a0a466f345a1e2318f 100644 |
--- a/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java |
+++ b/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java |
@@ -139,6 +139,19 @@ public class PeerConnectionFactory { |
nativeSetVideoHwAccelerationOptions(nativeFactory, renderEGLContext); |
} |
+ /** Set the EGL context used by HW Video encoding and decoding. |
+ * |
+ * |
+ * @param localEGLContext An instance of javax.microedition.khronos.egl.EGLContext. |
+ * Must be the same as used by VideoCapturerAndroid and any local |
+ * video renderer. |
+ * @param remoteEGLContext An instance of javax.microedition.khronos.egl.EGLContext. |
+ * Must be the same as used by any remote video renderer. |
+ */ |
+ public void setVideoHwAccelerationOptions(Object localEGLContext, Object remoteEGLContext) { |
+ nativeSetVideoHwAccelerationOptions2(nativeFactory, localEGLContext, remoteEGLContext); |
+ } |
+ |
public void dispose() { |
nativeFreeFactory(nativeFactory); |
signalingThread = null; |
@@ -206,6 +219,9 @@ public class PeerConnectionFactory { |
private static native void nativeSetVideoHwAccelerationOptions( |
long nativeFactory, Object renderEGLContext); |
+ private static native void nativeSetVideoHwAccelerationOptions2( |
+ long nativeFactory, Object localEGLContext, Object remoteEGLContext); |
+ |
private static native void nativeThreadsCallbacks(long nativeFactory); |
private static native void nativeFreeFactory(long nativeFactory); |