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

Issue 1840193007: Android: Handle SurfaceTextureHelper ctor failure for decoder and capturer (Closed)

Created:
4 years, 8 months ago by magjed_webrtc
Modified:
4 years, 7 months ago
Reviewers:
AlexG, perkj_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Android: Handle SurfaceTextureHelper ctor failure for decoder and capturer BUG=webrtc:5874 TEST=Manually throw an exception inside the SurfaceTextureHelper ctor and run AppRTCDemo. Committed: https://crrev.com/2aa84260d8a61f28dee4010e3f04b969abd8a502 Cr-Commit-Position: refs/heads/master@{#12665}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fallback to SW decoder. Only create STH for capture-to-texture. #

Patch Set 3 : Create new buffer pool for every startCapture session and update thread checks in CameraStatistics #

Patch Set 4 : Simply let startCapture fail #

Total comments: 2

Patch Set 5 : Change whitespace alignment #

Total comments: 4

Patch Set 6 : Addressing perkj@s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -41 lines) Patch
M webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java View 1 2 3 4 5 3 chunks +18 lines, -4 lines 0 comments Download
M webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M webrtc/api/java/jni/androidmediadecoder_jni.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M webrtc/api/java/jni/androidvideocapturer_jni.cc View 1 2 3 3 chunks +17 lines, -17 lines 0 comments Download
M webrtc/api/java/jni/surfacetexturehelper_jni.h View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/api/java/jni/surfacetexturehelper_jni.cc View 1 chunk +27 lines, -15 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
magjed_webrtc
Please take a look.
4 years, 8 months ago (2016-03-31 11:40:53 UTC) #6
AlexG
https://codereview.webrtc.org/1840193007/diff/60001/webrtc/api/java/jni/androidmediadecoder_jni.cc File webrtc/api/java/jni/androidmediadecoder_jni.cc (right): https://codereview.webrtc.org/1840193007/diff/60001/webrtc/api/java/jni/androidmediadecoder_jni.cc#newcode349 webrtc/api/java/jni/androidmediadecoder_jni.cc:349: if (!surface_texture_helper_) { Better to fallback to SW codec ...
4 years, 8 months ago (2016-03-31 23:03:22 UTC) #7
magjed_webrtc
https://codereview.webrtc.org/1840193007/diff/60001/webrtc/api/java/jni/androidmediadecoder_jni.cc File webrtc/api/java/jni/androidmediadecoder_jni.cc (right): https://codereview.webrtc.org/1840193007/diff/60001/webrtc/api/java/jni/androidmediadecoder_jni.cc#newcode349 webrtc/api/java/jni/androidmediadecoder_jni.cc:349: if (!surface_texture_helper_) { On 2016/03/31 23:03:22, AlexG wrote: > ...
4 years, 7 months ago (2016-05-04 09:51:51 UTC) #8
AlexG
lgtm https://codereview.webrtc.org/1840193007/diff/120001/webrtc/api/java/jni/surfacetexturehelper_jni.h File webrtc/api/java/jni/surfacetexturehelper_jni.h (right): https://codereview.webrtc.org/1840193007/diff/120001/webrtc/api/java/jni/surfacetexturehelper_jni.h#newcode43 webrtc/api/java/jni/surfacetexturehelper_jni.h:43: create(JNIEnv* jni, const char* thread_name, jobject j_egl_context); alignment? ...
4 years, 7 months ago (2016-05-06 17:45:25 UTC) #9
magjed_webrtc
Per - ping. https://codereview.webrtc.org/1840193007/diff/120001/webrtc/api/java/jni/surfacetexturehelper_jni.h File webrtc/api/java/jni/surfacetexturehelper_jni.h (right): https://codereview.webrtc.org/1840193007/diff/120001/webrtc/api/java/jni/surfacetexturehelper_jni.h#newcode43 webrtc/api/java/jni/surfacetexturehelper_jni.h:43: create(JNIEnv* jni, const char* thread_name, jobject ...
4 years, 7 months ago (2016-05-09 09:51:07 UTC) #10
perkj_webrtc
lgtm with the comments below at least considered. https://codereview.webrtc.org/1840193007/diff/140001/webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java File webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java (right): https://codereview.webrtc.org/1840193007/diff/140001/webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java#newcode325 webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java:325: // ...
4 years, 7 months ago (2016-05-09 13:28:36 UTC) #11
magjed_webrtc
https://codereview.webrtc.org/1840193007/diff/140001/webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java File webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java (right): https://codereview.webrtc.org/1840193007/diff/140001/webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java#newcode325 webrtc/api/java/android/org/webrtc/SurfaceTextureHelper.java:325: // Both these statements have been observed to fail ...
4 years, 7 months ago (2016-05-09 14:30:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1840193007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840193007/160001
4 years, 7 months ago (2016-05-09 14:30:46 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 7 months ago (2016-05-09 15:28:50 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 15:29:02 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2aa84260d8a61f28dee4010e3f04b969abd8a502
Cr-Commit-Position: refs/heads/master@{#12665}

Powered by Google App Engine
This is Rietveld 408576698