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

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

Issue 195363002: VideoCapturerDelegate: Retrieve supported/in-use format(s) for constraint negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: perkj@s comments Created 6 years, 9 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_capturer_source.h
diff --git a/content/renderer/media/media_stream_video_capturer_source.h b/content/renderer/media/media_stream_video_capturer_source.h
index e4f8f532d33ef866cebf1c5e837d3b8e47884872..d6be531b4f750351171553bd502f6485cc3297c6 100644
--- a/content/renderer/media/media_stream_video_capturer_source.h
+++ b/content/renderer/media/media_stream_video_capturer_source.h
@@ -34,7 +34,7 @@ class VideoCapturerDelegate
// Collects the formats that can currently be used.
// |max_requested_height| and |max_requested_width| is used by Tab and Screen
// capture to decide what resolution to generate.
- // |callback| is triggered when the formats has been collected.
+ // |callback| is triggered when the formats have been collected.
virtual void GetCurrentSupportedFormats(
int max_requested_width,
int max_requested_height,
@@ -75,6 +75,9 @@ class VideoCapturerDelegate
media::VideoCapture* capture,
const scoped_refptr<media::VideoFrame>& frame);
void OnErrorOnCaptureThread(media::VideoCapture* capture);
+ void OnDeviceFormatsInUseReceived(const media::VideoCaptureFormats& formats);
+ void OnDeviceSupportedFormatsEnumerated(
+ const media::VideoCaptureFormats& formats);
// The id identifies which video capture device is used for this video
// capture session.
@@ -95,6 +98,8 @@ class VideoCapturerDelegate
// Message loop of the caller of StartDeliver.
scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
+ SupportedFormatsCallback source_formats_callback_;
+
DISALLOW_COPY_AND_ASSIGN(VideoCapturerDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698