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

Unified Diff: third_party/WebKit/public/platform/WebMediaStreamTrack.h

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: GetVideoKindForFormat moved to utility. thanks guidou@. 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
« no previous file with comments | « third_party/WebKit/public/platform/WebMediaConstraints.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/WebKit/public/platform/WebMediaConstraints.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698