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

Unified Diff: media/capture/video_capturer_source.cc

Issue 2787773002: Add GetPreferredFormats method to media::VideoCapturerSource. (Closed)
Patch Set: rebase Created 3 years, 8 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: media/capture/video_capturer_source.cc
diff --git a/media/capture/video_capturer_source.cc b/media/capture/video_capturer_source.cc
index bafdf4216fd9c91b170e6b81c8af5aa48ccc1609..7ff99155daf7899762170eb43f136cfa2e69c91b 100644
--- a/media/capture/video_capturer_source.cc
+++ b/media/capture/video_capturer_source.cc
@@ -13,4 +13,12 @@ namespace media {
// to generate symbols across linking units.
VideoCapturerSource::~VideoCapturerSource() {}
+void VideoCapturerSource::GetCurrentSupportedFormats(
+ int max_requested_width,
+ int max_requested_height,
+ double max_requested_frame_rate,
+ const VideoCaptureDeviceFormatsCB& callback) {
+ callback.Run(GetPreferredFormats());
+}
+
} // namespace media
« media/capture/video_capturer_source.h ('K') | « media/capture/video_capturer_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698