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

Issue 2122693002: Android: Add initialize() function to VideoCapturer interface (Closed)

Created:
4 years, 5 months ago by magjed_webrtc
Modified:
4 years, 5 months ago
Reviewers:
sakal
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Android: Add initialize() function to VideoCapturer interface This CL moves some arguments, e.g. the camera thread, from the startCapture() function to a new initialize() function. These arguments are constant during the lifetime of the VideoCapturer, and are not changed for different startCapture() calls. Setting them once allows for simplifications in the code. This CL also fixes a bug for camera2 where pendingCameraSwitchSemaphore might not be released when switchEventsHandler is null. In camera1, the handler lock and 'cameraThreadHandler == null' check is replaced with an atomic boolean to check if the camera is stopped. BUG=webrtc:5519 R=sakal@webrtc.org Committed: https://crrev.com/27dcacdbc137e4b49c3e75f17b5a36cdd1ad73ba Cr-Commit-Position: refs/heads/master@{#13404}

Patch Set 1 : . #

Patch Set 2 : Check if surfaceTextureHandler is null in initialize #

Patch Set 3 : Store requsted format in switchCamera(), and check thread in setCameraState #

Patch Set 4 : Move init member variables to separate section #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -281 lines) Patch
M webrtc/api/android/java/src/org/webrtc/Camera2Capturer.java View 1 2 3 24 chunks +77 lines, -114 lines 0 comments Download
M webrtc/api/android/java/src/org/webrtc/VideoCapturer.java View 1 chunk +13 lines, -6 lines 0 comments Download
M webrtc/api/android/java/src/org/webrtc/VideoCapturerAndroid.java View 1 13 chunks +95 lines, -125 lines 0 comments Download
M webrtc/api/android/jni/androidvideocapturer_jni.cc View 2 chunks +18 lines, -16 lines 0 comments Download
M webrtc/api/androidtests/src/org/webrtc/CameraVideoCapturerTestFixtures.java View 1 16 chunks +23 lines, -20 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (16 generated)
magjed_webrtc
sami - Please take a look.
4 years, 5 months ago (2016-07-05 15:50:45 UTC) #13
sakal
lgtm
4 years, 5 months ago (2016-07-06 13:32:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2122693002/240001
4 years, 5 months ago (2016-07-06 13:45:13 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 5 months ago (2016-07-06 15:45:45 UTC) #18
magjed_webrtc
4 years, 5 months ago (2016-07-07 08:00:41 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:240001) manually as
27dcacdbc137e4b49c3e75f17b5a36cdd1ad73ba (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698