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

Unified Diff: webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java

Issue 1701993002: VideoCapturerAndroid: Report onFirstFrameAvailable() for textures as well (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add test Created 4 years, 10 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
« no previous file with comments | « webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java
diff --git a/webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java b/webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java
index 0ae03cab8eb1ebea68fd5c2cbc6823efefcca187..1c3d2367247efddaaed6a28e2711330e6fdaa813 100644
--- a/webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java
+++ b/webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java
@@ -683,9 +683,13 @@ public class VideoCapturerAndroid implements
return;
}
if (dropNextFrame) {
- surfaceHelper.returnTextureFrame();
- dropNextFrame = false;
- return;
+ surfaceHelper.returnTextureFrame();
+ dropNextFrame = false;
+ return;
+ }
+ if (eventsHandler != null && !firstFrameReported) {
+ eventsHandler.onFirstFrameAvailable();
+ firstFrameReported = true;
}
int rotation = getFrameOrientation();
« no previous file with comments | « webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698