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 f27b7dbb68e2694b0d328e1af049050618130c41..a4721735cc2270cc515b2db931530208af17c82b 100644 |
--- a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp |
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp |
@@ -168,6 +168,12 @@ void MediaStreamTrack::getSettings(MediaTrackSettings& settings) { |
if (platformSettings.hasHeight()) { |
settings.setHeight(platformSettings.height); |
} |
+ if (RuntimeEnabledFeatures::mediaCaptureDepthEnabled()) { |
+ settings.setDepthNear(platformSettings.depthNear); |
+ settings.setDepthFar(platformSettings.depthFar); |
+ settings.setFocalLengthX(platformSettings.focalLengthX); |
+ settings.setFocalLengthY(platformSettings.focalLengthY); |
+ } |
settings.setDeviceId(platformSettings.deviceId); |
} |