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

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

Issue 2728633002: Add utility set classes to support getUserMedia constraint proccessing. (Closed)
Patch Set: 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_source.h
diff --git a/content/renderer/media/media_stream_video_source.h b/content/renderer/media/media_stream_video_source.h
index 666aced76582e7a44d0f4ec7286d44071300ace0..031f9f0a075beabae856990e2abdfa6996041c53 100644
--- a/content/renderer/media/media_stream_video_source.h
+++ b/content/renderer/media/media_stream_video_source.h
@@ -57,6 +57,9 @@ class CONTENT_EXPORT MediaStreamVideoSource
kUnknownFrameRate = 0,
};
+ static constexpr double kDefaultAspectRatio =
+ static_cast<double>(kDefaultWidth) / static_cast<double>(kDefaultHeight);
+
MediaStreamVideoSource();
~MediaStreamVideoSource() override;

Powered by Google App Engine
This is Rietveld 408576698