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

Issue 1702603002: AndroidVideoCapturer getSupportedFormats(): Change interface from JSON string to List/vector (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

AndroidVideoCapturer getSupportedFormats(): Change interface from JSON string to List/vector This CL simplifies the VideoCapturer interface from 'String getSupportedFormatsAsJson() throws JSONException' to 'List<CaptureFormat> getSupportedFormats()'. The intermediate conversion to/from a JSON string is removed, and AndroidVideoCapturerJni converts the Java list to a C++ vector directly instead. BUG=webrtc:5519 R=perkj@webrtc.org Committed: https://crrev.com/5199c74d253bf1273a504becb6e3b33571f92a08 Cr-Commit-Position: refs/heads/master@{#11669}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove logging from C++. Remove json from api.gyp. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -73 lines) Patch
M webrtc/api/androidvideocapturer.h View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/api/androidvideocapturer.cc View 1 2 chunks +1 line, -24 lines 0 comments Download
M webrtc/api/api.gyp View 1 1 chunk +0 lines, -10 lines 0 comments Download
M webrtc/api/java/android/org/webrtc/CameraEnumerationAndroid.java View 3 chunks +3 lines, -20 lines 0 comments Download
M webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java View 3 chunks +1 line, -6 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 chunk +34 lines, -8 lines 0 comments Download
M webrtc/api/java/src/org/webrtc/VideoCapturer.java View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
magjed_webrtc
perkj - Please take a look.
4 years, 10 months ago (2016-02-16 14:00:53 UTC) #3
perkj_webrtc
This might be the last use of json. please test by removing from api.gyp: 'conditions': ...
4 years, 10 months ago (2016-02-16 14:35:41 UTC) #4
magjed_webrtc
https://codereview.webrtc.org/1702603002/diff/1/webrtc/api/androidvideocapturer.cc File webrtc/api/androidvideocapturer.cc (right): https://codereview.webrtc.org/1702603002/diff/1/webrtc/api/androidvideocapturer.cc#newcode123 webrtc/api/androidvideocapturer.cc:123: LOG(LS_INFO) << formats.size() << " supported formats: "; On ...
4 years, 10 months ago (2016-02-18 10:43:36 UTC) #5
perkj_webrtc
lgtm
4 years, 10 months ago (2016-02-18 11:10:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1702603002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1702603002/20001
4 years, 10 months ago (2016-02-18 11:23:10 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/11011)
4 years, 10 months ago (2016-02-18 11:30:44 UTC) #10
magjed_webrtc
Committed patchset #2 (id:20001) manually as 5199c74d253bf1273a504becb6e3b33571f92a08 (presubmit successful).
4 years, 10 months ago (2016-02-18 12:10:07 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 12:10:09 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5199c74d253bf1273a504becb6e3b33571f92a08
Cr-Commit-Position: refs/heads/master@{#11669}

Powered by Google App Engine
This is Rietveld 408576698