Move VideoCapturer to video_api and cleanup.
This should only be landed after clients have been given time to upgrade to the new interface. Bug: webrtc:9496, webrtc:9181 Change-Id: Ideb37637d9f0b9a3a9748811879c263c64f81d11 Reviewed-on: https://webrtc-review.googlesource.com/87308 Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Paulina Hensman <phensman@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24080}
This commit is contained in:
committed by
Commit Bot
parent
213618e37e
commit
903bd4145f
@ -19,19 +19,10 @@ import javax.annotation.Nullable;
|
||||
class NativeCapturerObserver implements CapturerObserver {
|
||||
// Pointer to webrtc::jni::AndroidVideoTrackSource.
|
||||
private final long nativeSource;
|
||||
// TODO(bugs.webrtc.org/9181): Remove.
|
||||
@Nullable private final SurfaceTextureHelper surfaceTextureHelper;
|
||||
|
||||
@CalledByNative
|
||||
public NativeCapturerObserver(long nativeSource) {
|
||||
this.nativeSource = nativeSource;
|
||||
this.surfaceTextureHelper = null;
|
||||
}
|
||||
|
||||
// TODO(bugs.webrtc.org/9181): Remove.
|
||||
public NativeCapturerObserver(long nativeSource, SurfaceTextureHelper surfaceTextureHelper) {
|
||||
this.nativeSource = nativeSource;
|
||||
this.surfaceTextureHelper = surfaceTextureHelper;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -50,12 +41,6 @@ class NativeCapturerObserver implements CapturerObserver {
|
||||
frame.getRotation(), frame.getTimestampNs(), frame.getBuffer());
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
if (surfaceTextureHelper != null) {
|
||||
surfaceTextureHelper.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
private static native void nativeCapturerStarted(long source, boolean success);
|
||||
private static native void nativeCapturerStopped(long source);
|
||||
private static native void nativeOnFrameCaptured(
|
||||
|
||||
Reference in New Issue
Block a user