Remove checks for SDK <= 21
WebRTC’s minSdk is 21, so all those checks are dead code. Change-Id: I26497fd92259b66d9e5ac6afbb393adf4d904c77 Bug: webrtc:13780 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/253124 Reviewed-by: Henrik Andreassson <henrika@webrtc.org> Reviewed-by: Linus Nilsson <lnilsson@webrtc.org> Commit-Queue: Xavier Lepaul <xalep@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36140}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
7befe8e5e4
commit
0f50cc2849
@ -453,10 +453,6 @@ public class PeerConnectionClientTest implements PeerConnectionEvents {
|
||||
@Test
|
||||
@SmallTest
|
||||
public void testLoopbackVp8DecodeToTexture() throws InterruptedException {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
Log.i(TAG, "Decode to textures is not supported, requires SDK version 19.");
|
||||
return;
|
||||
}
|
||||
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_VP8),
|
||||
createCameraCapturer(false /* captureToTexture */), true /* decodeToTexture */);
|
||||
}
|
||||
@ -464,10 +460,6 @@ public class PeerConnectionClientTest implements PeerConnectionEvents {
|
||||
@Test
|
||||
@SmallTest
|
||||
public void testLoopbackVp9DecodeToTexture() throws InterruptedException {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
Log.i(TAG, "Decode to textures is not supported, requires SDK version 19.");
|
||||
return;
|
||||
}
|
||||
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_VP9),
|
||||
createCameraCapturer(false /* captureToTexture */), true /* decodeToTexture */);
|
||||
}
|
||||
@ -475,10 +467,6 @@ public class PeerConnectionClientTest implements PeerConnectionEvents {
|
||||
@Test
|
||||
@SmallTest
|
||||
public void testLoopbackH264DecodeToTexture() throws InterruptedException {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
Log.i(TAG, "Decode to textures is not supported, requires SDK version 19.");
|
||||
return;
|
||||
}
|
||||
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_H264),
|
||||
createCameraCapturer(false /* captureToTexture */), true /* decodeToTexture */);
|
||||
}
|
||||
@ -486,10 +474,6 @@ public class PeerConnectionClientTest implements PeerConnectionEvents {
|
||||
@Test
|
||||
@SmallTest
|
||||
public void testLoopbackVp8CaptureToTexture() throws InterruptedException {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
Log.i(TAG, "Encode to textures is not supported. Requires SDK version 19");
|
||||
return;
|
||||
}
|
||||
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_VP8),
|
||||
createCameraCapturer(true /* captureToTexture */), true /* decodeToTexture */);
|
||||
}
|
||||
@ -497,10 +481,6 @@ public class PeerConnectionClientTest implements PeerConnectionEvents {
|
||||
@Test
|
||||
@SmallTest
|
||||
public void testLoopbackH264CaptureToTexture() throws InterruptedException {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
Log.i(TAG, "Encode to textures is not supported. Requires KITKAT");
|
||||
return;
|
||||
}
|
||||
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_H264),
|
||||
createCameraCapturer(true /* captureToTexture */), true /* decodeToTexture */);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user