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

Issue 1696553003: Android: Make VideoCapturer an interface for all VideoCapturers to implement (Closed)

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

Android: Make VideoCapturer an interface for all VideoCapturers to implement This CL factors out the interface that AndroidVideoCapturerJni is using to communicate with the Java counterpart. This interface is moved into VideoCapturer. The interface is not touched in this CL, and a follow-up CL is planned to simplify and improve it. Another change is that the native part of VideoCapturer is created in PeerConnectionFactory.createVideoSource() instead of doing it immediately in the ctor. BUG=webrtc:5519 R=perkj@webrtc.org Committed: https://crrev.com/5e7834e151c15d9f28a5faa9683a1b5c26bacaef Cr-Commit-Position: refs/heads/master@{#11606}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename release()/isReleased() to dispose()/isDisposed() #

Patch Set 3 : Replace 'replace' with 'dispose' in jni as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -185 lines) Patch
M webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java View 1 15 chunks +18 lines, -28 lines 0 comments Download
M webrtc/api/androidvideocapturer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/java/android/org/webrtc/CameraEnumerationAndroid.java View 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java View 1 7 chunks +19 lines, -93 lines 0 comments Download
M webrtc/api/java/jni/androidvideocapturer_jni.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/java/jni/androidvideocapturer_jni.cc View 1 2 8 chunks +11 lines, -23 lines 0 comments Download
M webrtc/api/java/jni/classreferenceholder.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/api/java/jni/peerconnection_jni.cc View 1 2 chunks +15 lines, -8 lines 0 comments Download
M webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java View 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/api/java/src/org/webrtc/VideoCapturer.java View 1 1 chunk +76 lines, -23 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
magjed_webrtc
perkj - Please take a look.
4 years, 10 months ago (2016-02-12 12:21:18 UTC) #3
perkj_webrtc
lgtm with the below addressed. https://codereview.webrtc.org/1696553003/diff/1/webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java File webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java (right): https://codereview.webrtc.org/1696553003/diff/1/webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java#newcode225 webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java:225: capturer.release(); please keep dispose ...
4 years, 10 months ago (2016-02-12 12:29:23 UTC) #4
magjed_webrtc
https://codereview.webrtc.org/1696553003/diff/1/webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java File webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java (right): https://codereview.webrtc.org/1696553003/diff/1/webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java#newcode225 webrtc/api/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java:225: capturer.release(); On 2016/02/12 12:29:23, perkj_webrtc wrote: > please keep ...
4 years, 10 months ago (2016-02-12 12:42:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1696553003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1696553003/20001
4 years, 10 months ago (2016-02-12 12:42:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1696553003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1696553003/40001
4 years, 10 months ago (2016-02-12 14:32:42 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_dbg/builds/12613)
4 years, 10 months ago (2016-02-12 14:34:39 UTC) #14
magjed_webrtc
Committed patchset #3 (id:40001) manually as 5e7834e151c15d9f28a5faa9683a1b5c26bacaef (presubmit successful).
4 years, 10 months ago (2016-02-12 16:05:42 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2016-02-12 16:05:46 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5e7834e151c15d9f28a5faa9683a1b5c26bacaef
Cr-Commit-Position: refs/heads/master@{#11606}

Powered by Google App Engine
This is Rietveld 408576698