Chromium Code Reviews
DescriptionImage 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)
|