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

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

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: 80-char line fix in test html. 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/MediaConstraintsImpl.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp b/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp
index faaecadf3bc98f6d3570b5e574cca1c1bdbc6652..70122d230c2e9ee3a627983a61adab6fb0c06e0a 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp
@@ -670,6 +670,22 @@ void copyConstraintSet(const MediaTrackConstraintSet& constraintsIn,
copyStringConstraint(constraintsIn.groupId(), nakedTreatment,
constraintBuffer.groupId);
}
+ if (constraintsIn.hasDepthNear()) {
+ copyDoubleConstraint(constraintsIn.depthNear(), nakedTreatment,
+ constraintBuffer.depthNear);
+ }
+ if (constraintsIn.hasDepthFar()) {
+ copyDoubleConstraint(constraintsIn.depthFar(), nakedTreatment,
+ constraintBuffer.depthFar);
+ }
+ if (constraintsIn.hasFocalLengthX()) {
+ copyDoubleConstraint(constraintsIn.focalLengthX(), nakedTreatment,
+ constraintBuffer.focalLengthX);
+ }
+ if (constraintsIn.hasFocalLengthY()) {
+ copyDoubleConstraint(constraintsIn.focalLengthY(), nakedTreatment,
+ constraintBuffer.focalLengthY);
+ }
}
WebMediaConstraints convertConstraintsToWeb(

Powered by Google App Engine
This is Rietveld 408576698