Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1951)

Unified Diff: talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java

Issue 1304063011: Move shared EGL context initialization to a separate function. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comment + fix Linux build. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 9c32f37b76e056fa9286caba8f3d9fe2c1746546..7d954852cd9d10d72dea9790b9de97484a6ae126 100644
--- a/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java
+++ b/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java
@@ -64,7 +64,7 @@ public class PeerConnectionFactory {
// decoding thread.
public static native boolean initializeAndroidGlobals(
Object context, boolean initializeAudio, boolean initializeVideo,
- boolean vp8HwAcceleration, Object renderEGLContext);
+ boolean videoHwAcceleration);
// Field trial initialization. Must be called before PeerConnectionFactory
// is created.
@@ -131,12 +131,14 @@ public class PeerConnectionFactory {
nativeSetOptions(nativeFactory, options);
}
+ public void setVideoHwAccelerationOptions(Object renderEGLContext) {
+ nativeSetVideoHwAccelerationOptions(nativeFactory, renderEGLContext);
+ }
+
public void dispose() {
freeFactory(nativeFactory);
}
- public native void nativeSetOptions(long nativeFactory, Options options);
-
private static native long nativeCreatePeerConnectionFactory();
private static native long nativeCreateObserver(
@@ -162,5 +164,10 @@ public class PeerConnectionFactory {
private static native long nativeCreateAudioTrack(
long nativeFactory, String id, long nativeSource);
+ public native void nativeSetOptions(long nativeFactory, Options options);
+
+ private static native void nativeSetVideoHwAccelerationOptions(
+ long nativeFactory, Object renderEGLContext);
+
private static native void freeFactory(long nativeFactory);
}
« no previous file with comments | « talk/app/webrtc/java/jni/peerconnection_jni.cc ('k') | webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698