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

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

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: Created 3 years, 10 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 08880baf2dc0ad88955b5ac2058dc37c7b456e55..5027d1ece4f41d2e1bfcf8b61d828b31ea1279ba 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
@@ -228,6 +228,11 @@ void MediaStreamTrack::getSettings(MediaTrackSettings& settings) {
if (platformSettings.hasHeight()) {
settings.setHeight(platformSettings.height);
}
+ if (RuntimeEnabledFeatures::mediaCaptureDepthEnabled() &&
+ m_component->source()->type() == MediaStreamSource::TypeVideo) {
+ if (platformSettings.hasVideoKind())
Guido Urdaneta 2017/02/07 10:26:04 This if could be another && in the previous if
aleksandar.stojiljkovic 2017/02/07 11:33:49 Left it deliberately, as more fields (depthNear/Fa
+ settings.setVideoKind(platformSettings.videoKind);
+ }
settings.setDeviceId(platformSettings.deviceId);
if (platformSettings.hasFacingMode()) {
switch (platformSettings.facingMode) {

Powered by Google App Engine
This is Rietveld 408576698