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

Issue 1763673002: VideoCapturerAndroid: Use one thread per startCapture()/stopCapture() session (Closed)

Created:
4 years, 9 months ago by magjed_webrtc
Modified:
4 years, 9 months ago
Reviewers:
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

VideoCapturerAndroid: Use one thread per startCapture()/stopCapture() session Currently, VideoCapturerAndroid sets the thread and handler in the ctor and clears them in dispose(). This CL sets the handler in startCapture() instead and clears it in stopCapture(). The purpose is to prepare for sending in the SurfaceTextureHelper in startCapture() instead of letting VideoCapturerAndroid create it in the ctor. All access to the handler is now synchronized by a lock, and all Runnables are posted with a token so that they can be removed all at once in stopCapture() to guarantee that no pending operation will be executed after stopCapture(). BUG=webrtc:5519 Committed: https://crrev.com/9cbebee523dbd280a4f67ad414a432ed730f241f Cr-Commit-Position: refs/heads/master@{#11939}

Patch Set 1 : #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -69 lines) Patch
M webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java View 1 17 chunks +103 lines, -69 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
magjed_webrtc
perkj - Please take a look.
4 years, 9 months ago (2016-03-04 10:51:58 UTC) #5
perkj_webrtc
lgtm
4 years, 9 months ago (2016-03-08 15:17:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763673002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763673002/60001
4 years, 9 months ago (2016-03-10 08:57:45 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 9 months ago (2016-03-10 10:16:37 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9cbebee523dbd280a4f67ad414a432ed730f241f Cr-Commit-Position: refs/heads/master@{#11939}
4 years, 9 months ago (2016-03-10 10:16:44 UTC) #13
magjed_webrtc
4 years, 9 months ago (2016-03-10 12:30:15 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:60001) has been created in
https://codereview.webrtc.org/1777253002/ by magjed@webrtc.org.

The reason for reverting is: Frame rate and freeze detection not working
properly after switchCamera(). This is because the previous cameraObserver is
not removed before posting a new one..

Powered by Google App Engine
This is Rietveld 408576698