| Index: third_party/WebKit/public/platform/WebMediaStreamTrack.h
|
| diff --git a/third_party/WebKit/public/platform/WebMediaStreamTrack.h b/third_party/WebKit/public/platform/WebMediaStreamTrack.h
|
| index 9651952ab36c5738c96d497f6e463aca19fdc859..ca1cb7bfa36a863423dd0bc437409a46b8e3b81e 100644
|
| --- a/third_party/WebKit/public/platform/WebMediaStreamTrack.h
|
| +++ b/third_party/WebKit/public/platform/WebMediaStreamTrack.h
|
| @@ -44,14 +44,15 @@ class WebMediaStreamTrack {
|
| enum class FacingMode { None, User, Environment, Left, Right };
|
|
|
| struct Settings {
|
| - bool hasFrameRate() { return frameRate >= 0.0; }
|
| - bool hasWidth() { return width >= 0; }
|
| - bool hasHeight() { return height >= 0; }
|
| - bool hasFacingMode() { return facingMode != FacingMode::None; }
|
| - bool hasFocalLengthX() { return focalLengthX >= 0.0; }
|
| - bool hasFocalLengthY() { return focalLengthY >= 0.0; }
|
| - bool hasDepthNear() { return depthNear >= 0.0; }
|
| - bool hasDepthFar() { return depthFar >= 0.0; }
|
| + bool hasFrameRate() const { return frameRate >= 0.0; }
|
| + bool hasWidth() const { return width >= 0; }
|
| + bool hasHeight() const { return height >= 0; }
|
| + bool hasFacingMode() const { return facingMode != FacingMode::None; }
|
| + bool hasVideoKind() const { return !videoKind.isNull(); }
|
| + bool hasFocalLengthX() const { return focalLengthX >= 0.0; }
|
| + bool hasFocalLengthY() const { return focalLengthY >= 0.0; }
|
| + bool hasDepthNear() const { return depthNear >= 0.0; }
|
| + bool hasDepthFar() const { return depthFar >= 0.0; }
|
| // The variables are read from
|
| // MediaStreamTrack::GetSettings only.
|
| double frameRate = -1.0;
|
| @@ -60,6 +61,7 @@ class WebMediaStreamTrack {
|
| WebString deviceId;
|
| FacingMode facingMode = FacingMode::None;
|
| // Media Capture Depth Stream Extensions.
|
| + WebString videoKind;
|
| double focalLengthX = -1.0;
|
| double focalLengthY = -1.0;
|
| double depthNear = -1.0;
|
|
|