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

Unified Diff: content/public/common/media_stream_request.cc

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: fix trybot errors Created 3 years, 11 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/public/common/media_stream_request.cc
diff --git a/content/public/common/media_stream_request.cc b/content/public/common/media_stream_request.cc
index 42db0e145c81801deb8660c0c279833164199c63..8d8246a405e635e1df56ee1b5c2113c846042be7 100644
--- a/content/public/common/media_stream_request.cc
+++ b/content/public/common/media_stream_request.cc
@@ -49,6 +49,12 @@ MediaStreamDevice::MediaStreamDevice(MediaStreamType type,
MediaStreamDevice::MediaStreamDevice(MediaStreamType type,
const std::string& id,
const std::string& name,
+ VideoFacingMode facing)
+ : type(type), id(id), video_facing(facing), name(name) {}
+
+MediaStreamDevice::MediaStreamDevice(MediaStreamType type,
+ const std::string& id,
+ const std::string& name,
int sample_rate,
int channel_layout,
int frames_per_buffer)

Powered by Google App Engine
This is Rietveld 408576698