This cl change so that we use EGL14 where it is supported and EGL10 otherwise. The idea is to make this agnostic to an application and for WebRTC except in EGLBase.
The reason we want to use EGL14 is to be able to use EGLExt.eglPresentationTimeANDROID when writing textures to MediaEncoder. BUG=webrtc:4993 TBR=glaznew@webrtc.org Review URL: https://codereview.webrtc.org/1461083002 Cr-Commit-Position: refs/heads/master@{#10864}
This commit is contained in:
@ -17,6 +17,7 @@ import org.appspot.apprtc.AppRTCClient.SignalingParameters;
|
||||
import org.appspot.apprtc.util.LooperExecutor;
|
||||
import org.webrtc.CameraEnumerationAndroid;
|
||||
import org.webrtc.DataChannel;
|
||||
import org.webrtc.EglBase;
|
||||
import org.webrtc.IceCandidate;
|
||||
import org.webrtc.Logging;
|
||||
import org.webrtc.MediaCodecVideoEncoder;
|
||||
@ -465,7 +466,7 @@ public class PeerConnectionClient {
|
||||
}
|
||||
Log.d(TAG, "Opening camera: " + cameraDeviceName);
|
||||
videoCapturer = VideoCapturerAndroid.create(cameraDeviceName, null,
|
||||
peerConnectionParameters.captureToTexture ? renderEGLContext : null);
|
||||
peerConnectionParameters.captureToTexture ? new EglBase.Context(renderEGLContext) : null);
|
||||
if (videoCapturer == null) {
|
||||
reportError("Failed to open camera");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user