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 08880baf2dc0ad88955b5ac2058dc37c7b456e55..85aba8f625725fd49c5775a991db0c270db4a030 100644 |
--- a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp |
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp |
@@ -228,6 +228,17 @@ void MediaStreamTrack::getSettings(MediaTrackSettings& settings) { |
if (platformSettings.hasHeight()) { |
settings.setHeight(platformSettings.height); |
} |
+ if (RuntimeEnabledFeatures::mediaCaptureDepthEnabled() && |
+ m_component->source()->type() == MediaStreamSource::TypeVideo) { |
+ if (platformSettings.hasDepthNear()) |
+ settings.setDepthNear(platformSettings.depthNear); |
+ if (platformSettings.hasDepthFar()) |
+ settings.setDepthFar(platformSettings.depthFar); |
+ if (platformSettings.hasFocalLengthX()) |
+ settings.setFocalLengthX(platformSettings.focalLengthX); |
+ if (platformSettings.hasFocalLengthY()) |
+ settings.setFocalLengthY(platformSettings.focalLengthY); |
+ } |
settings.setDeviceId(platformSettings.deviceId); |
if (platformSettings.hasFacingMode()) { |
switch (platformSettings.facingMode) { |