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

Unified Diff: content/renderer/media/media_stream_video_track.h

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: Rebase to http://crrev.com/2669243004/ simplified the patch. Thanks guidou@chromium.org 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: content/renderer/media/media_stream_video_track.h
diff --git a/content/renderer/media/media_stream_video_track.h b/content/renderer/media/media_stream_video_track.h
index 364a64e73525ae6006a88c478576982ed0a153c5..166e451156753418282fd0a62fb2ca44d4ad29ee 100644
--- a/content/renderer/media/media_stream_video_track.h
+++ b/content/renderer/media/media_stream_video_track.h
@@ -16,9 +16,19 @@
#include "content/renderer/media/media_stream_track.h"
#include "content/renderer/media/media_stream_video_source.h"
#include "content/renderer/media/secure_display_link_tracker.h"
+#include "media/capture/video_capture_types.h"
+#include "third_party/WebKit/public/platform/WebString.h"
namespace content {
+// VideoKind enum values. https://w3c.github.io/mediacapture-depth.
Guido Urdaneta 2017/02/10 12:45:21 These are used only here and in media_stream_const
aleksandar.stojiljkovic 2017/02/10 15:06:51 String constants removed. It is not needed to have
+CONTENT_EXPORT extern const char kVideoKindColor[];
+CONTENT_EXPORT extern const char kVideoKindDepth[];
+
+// Calculates and returns videoKind value for |format|.
+blink::WebString CONTENT_EXPORT
+GetVideoKindForFormat(const media::VideoCaptureFormat& format);
+
// MediaStreamVideoTrack is a video specific representation of a
// blink::WebMediaStreamTrack in content. It is owned by the blink object
// and can be retrieved from a blink object using
« no previous file with comments | « content/renderer/media/media_stream_video_source.cc ('k') | content/renderer/media/media_stream_video_track.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698