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( |