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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: review #25 fix. Thanks kinuko@. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
index 1202c132a53f2578a24ec5e73f45811f16f88745..cd100d9f332df3cbf05eecafbc2f09a2876821ad 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
@@ -228,6 +228,12 @@ void MediaStreamTrack::getSettings(MediaTrackSettings& settings) {
if (platformSettings.hasHeight()) {
settings.setHeight(platformSettings.height);
}
+ if (RuntimeEnabledFeatures::mediaCaptureDepthEnabled()) {
mcasas 2017/01/11 23:18:20 I guess this also only makes sense if: m_compone
aleksandar.stojiljkovic 2017/01/12 14:13:59 MediaTrackSupportedConstraints / I understand you
aleksandar.stojiljkovic 2017/01/29 18:45:33 Done. PS#6: - added near, far and focal length to
+ settings.setDepthNear(platformSettings.depthNear);
+ settings.setDepthFar(platformSettings.depthFar);
+ settings.setFocalLengthX(platformSettings.focalLengthX);
+ settings.setFocalLengthY(platformSettings.focalLengthY);
+ }
settings.setDeviceId(platformSettings.deviceId);
}

Powered by Google App Engine
This is Rietveld 408576698