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

Issue 1987663002: android: Don't do a thread jump for incoming frames. (Closed)

Created:
4 years, 7 months ago by nisse-webrtc
Modified:
4 years, 7 months ago
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

Don't do a thread jump for incoming frames. We're now supposed to accept incoming frames from any thread. BUG=webrtc:5902 Committed: https://crrev.com/c82d0902e1f1e902223df3452f9a2a3b7fdb71f4 Cr-Commit-Position: refs/heads/master@{#12844}

Patch Set 1 #

Patch Set 2 : Take capturer_lock_. #

Total comments: 7

Patch Set 3 : Delete thread check in AndroidVideoCapturer::OnIncomingFrame. #

Patch Set 4 : Delete VideoBroadcaster thread checker #

Total comments: 5

Patch Set 5 : Revert most of VideoBroadcaster change. Check for NULL capturer_.' #

Patch Set 6 : Clarified comment. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -8 lines) Patch
M webrtc/api/androidvideocapturer.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 2 comments Download
M webrtc/api/java/jni/androidvideocapturer_jni.cc View 1 2 3 4 2 chunks +13 lines, -6 lines 0 comments Download
M webrtc/media/base/videobroadcaster.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 33 (9 generated)
nisse-webrtc
This is a somewhat speculative cl, it will be interesting to see if anything breaks. ...
4 years, 7 months ago (2016-05-17 12:24:57 UTC) #2
perkj_webrtc
lgtm
4 years, 7 months ago (2016-05-17 12:33:28 UTC) #3
perkj_webrtc
On 2016/05/17 12:33:28, perkj_webrtc wrote: > lgtm Can we file a bug for this to ...
4 years, 7 months ago (2016-05-17 12:33:56 UTC) #4
nisse-webrtc
On 2016/05/17 12:33:56, perkj_webrtc wrote: > Can we file a bug for this to track ...
4 years, 7 months ago (2016-05-17 14:02:25 UTC) #5
pbos-webrtc
On 2016/05/17 14:02:25, nisse-webrtc wrote: > On 2016/05/17 12:33:56, perkj_webrtc wrote: > > > Can ...
4 years, 7 months ago (2016-05-17 14:25:32 UTC) #6
pbos-webrtc
https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode197 webrtc/api/java/jni/androidvideocapturer_jni.cc:197: rtc::CritScope cs(&capturer_lock_); Any risk of this deadlocking?
4 years, 7 months ago (2016-05-17 14:26:06 UTC) #8
nisse-webrtc
Patch set 3 crashes in the thread checks in VideoBroadcaster. Does that thread checker still ...
4 years, 7 months ago (2016-05-18 07:44:01 UTC) #10
nisse-webrtc
Magnus, can you explain the use of capturer_lock_? Is it still needed? https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc ...
4 years, 7 months ago (2016-05-18 12:28:03 UTC) #12
magjed_webrtc
https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode197 webrtc/api/java/jni/androidvideocapturer_jni.cc:197: rtc::CritScope cs(&capturer_lock_); On 2016/05/18 12:28:03, nisse-webrtc wrote: > On ...
4 years, 7 months ago (2016-05-18 15:12:50 UTC) #13
magjed_webrtc
https://codereview.webrtc.org/1987663002/diff/60001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): https://codereview.webrtc.org/1987663002/diff/60001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode186 webrtc/api/java/jni/androidvideocapturer_jni.cc:186: capturer_->OnIncomingFrame(buffer, rotation, timestamp_ns); You have introduced a race here. ...
4 years, 7 months ago (2016-05-18 15:29:11 UTC) #14
nisse-webrtc
https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode197 webrtc/api/java/jni/androidvideocapturer_jni.cc:197: rtc::CritScope cs(&capturer_lock_); On 2016/05/18 15:12:50, magjed_webrtc wrote: > On ...
4 years, 7 months ago (2016-05-18 15:31:31 UTC) #15
magjed_webrtc
https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode197 webrtc/api/java/jni/androidvideocapturer_jni.cc:197: rtc::CritScope cs(&capturer_lock_); On 2016/05/18 15:31:31, nisse-webrtc wrote: > On ...
4 years, 7 months ago (2016-05-18 15:51:28 UTC) #16
perkj_webrtc
https://codereview.webrtc.org/1987663002/diff/60001/webrtc/media/base/videobroadcaster.cc File webrtc/media/base/videobroadcaster.cc (left): https://codereview.webrtc.org/1987663002/diff/60001/webrtc/media/base/videobroadcaster.cc#oldcode43 webrtc/media/base/videobroadcaster.cc:43: RTC_DCHECK(thread_checker_.CalledOnValidThread()); please only remove the thread check from this ...
4 years, 7 months ago (2016-05-18 16:43:24 UTC) #17
nisse-webrtc
https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode197 webrtc/api/java/jni/androidvideocapturer_jni.cc:197: rtc::CritScope cs(&capturer_lock_); On 2016/05/18 15:51:28, magjed_webrtc wrote: > On ...
4 years, 7 months ago (2016-05-19 07:01:05 UTC) #18
magjed_webrtc
lgtm
4 years, 7 months ago (2016-05-19 09:33:37 UTC) #19
perkj_webrtc
lgtm
4 years, 7 months ago (2016-05-19 10:07:46 UTC) #20
nisse-webrtc
On 2016/05/17 14:26:06, pbos-webrtc wrote: > https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc > File webrtc/api/java/jni/androidvideocapturer_jni.cc (right): > > https://codereview.webrtc.org/1987663002/diff/20001/webrtc/api/java/jni/androidvideocapturer_jni.cc#newcode197 > ...
4 years, 7 months ago (2016-05-20 10:14:20 UTC) #21
pbos-webrtc
lgtm, really hoping we're not putting a deadlock in here :) https://codereview.webrtc.org/1987663002/diff/100001/webrtc/api/androidvideocapturer.cc File webrtc/api/androidvideocapturer.cc (right): ...
4 years, 7 months ago (2016-05-20 13:22:47 UTC) #22
nisse-webrtc
I'm trying to land this... Have a nice weekend! https://codereview.webrtc.org/1987663002/diff/100001/webrtc/api/androidvideocapturer.cc File webrtc/api/androidvideocapturer.cc (right): https://codereview.webrtc.org/1987663002/diff/100001/webrtc/api/androidvideocapturer.cc#newcode183 webrtc/api/androidvideocapturer.cc:183: ...
4 years, 7 months ago (2016-05-20 13:32:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1987663002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1987663002/100001
4 years, 7 months ago (2016-05-20 13:32:45 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_rel on ...
4 years, 7 months ago (2016-05-20 15:33:18 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1987663002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1987663002/100001
4 years, 7 months ago (2016-05-23 06:38:34 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-23 07:39:42 UTC) #31
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 07:39:52 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c82d0902e1f1e902223df3452f9a2a3b7fdb71f4
Cr-Commit-Position: refs/heads/master@{#12844}

Powered by Google App Engine
This is Rietveld 408576698