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

Issue 2766473002: Image Capture: wire getSettings() from MediaStreamTrack (Closed)

Created:
3 years, 9 months ago by mcasas
Modified:
3 years, 9 months ago
CC:
chromium-reviews, blink-reviews, haraken, tommyw+watchlist_chromium.org, mcasas+imagecapture_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Image Capture: wire getSettings() from MediaStreamTrack This CL wires the fourth and last Constrainable Pattern method, MediaStreamTrack.getSettings(), appending Image-Capture specific Settings to what is returned now. ImageCapture::getMediaTrackSettings simply extends the parameter |settings| with whatever the current |m_capabilities| holds. Perhaps confusingly, ImageCapture::m_capabilities includes _both_ working ranges and current values so, in a way, it encompasses the capabilities and the settings; this is due to the previous API (and mojo) design, and will be untangled in subsequent CLs. Also, this CL forces an update of |m_capabilities| when configuring or reading the device. A few LayoutTests are added, including one where the applied constraints are retrieved with getSettings and compared (the mojo mock is extended to latch the former blindly). BUG=700607 Review-Url: https://codereview.chromium.org/2766473002 Cr-Commit-Position: refs/heads/master@{#458495} Committed: https://chromium.googlesource.com/chromium/src/+/863711a1f0b27b5aa30ed18af6932eae19ccf5fc

Patch Set 1 : #

Total comments: 10

Patch Set 2 : reillyg@s comments #

Messages

Total messages: 19 (11 generated)
mcasas
reillyg@ ptal guidou@ ptal mediastream/
3 years, 9 months ago (2017-03-21 01:06:23 UTC) #5
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2766473002/diff/40001/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html File third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html (right): https://codereview.chromium.org/2766473002/diff/40001/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html#newcode20 third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html:20: nit: extra whitespace https://codereview.chromium.org/2766473002/diff/40001/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html#newcode49 third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html:49: .catch(error => { To ...
3 years, 9 months ago (2017-03-21 01:25:17 UTC) #7
mcasas
ptal https://codereview.chromium.org/2766473002/diff/40001/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html File third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html (right): https://codereview.chromium.org/2766473002/diff/40001/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html#newcode20 third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html:20: On 2017/03/21 01:25:17, Reilly Grant wrote: > nit: ...
3 years, 9 months ago (2017-03-21 02:40:11 UTC) #11
Guido Urdaneta
mediastream lgtm
3 years, 9 months ago (2017-03-21 10:28:16 UTC) #12
mcasas
reillyg@ ptal
3 years, 9 months ago (2017-03-21 17:11:28 UTC) #13
Reilly Grant (use Gerrit)
lgtm
3 years, 9 months ago (2017-03-21 17:20:52 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.chromium.org/2766473002/120001
3 years, 9 months ago (2017-03-21 17:55:00 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 18:57:32 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/863711a1f0b27b5aa30ed18af693...

Powered by Google App Engine
This is Rietveld 408576698