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

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

Issue 2970823003: Rename MediaStreamVideoSource:GetCurrentFormatImpl() to GetCurrentFormat() (Closed)
Patch Set: add DCHECK Created 3 years, 5 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 235f5fab3eccf08aeabd7037d8953ea578120f19..9fdc2911817d23cca077d55264440b79f52e7caa 100644
--- a/content/renderer/media/media_stream_video_source.h
+++ b/content/renderer/media/media_stream_video_source.h
@@ -78,7 +78,8 @@ class CONTENT_EXPORT MediaStreamVideoSource : public MediaStreamSource {
// Returns the task runner where video frames will be delivered on.
base::SingleThreadTaskRunner* io_task_runner() const;
- base::Optional<media::VideoCaptureFormat> GetCurrentFormat() const;
+ // Implementations must return the capture format if available.
+ virtual base::Optional<media::VideoCaptureFormat> GetCurrentFormat() const;
base::WeakPtr<MediaStreamVideoSource> GetWeakPtr() {
return weak_factory_.GetWeakPtr();
@@ -93,10 +94,6 @@ class CONTENT_EXPORT MediaStreamVideoSource : public MediaStreamSource {
// Sets muted state and notifies it to all registered tracks.
virtual void SetMutedState(bool state);
- // An implementation must return its capture format if available.
- virtual base::Optional<media::VideoCaptureFormat> GetCurrentFormatImpl()
- const;
-
// An implementation must start capturing frames after this method is called.
// When the source has started or failed to start OnStartDone must be called.
// An implementation must call |frame_callback| on the IO thread with the
« no previous file with comments | « content/renderer/media/media_stream_video_capturer_source.cc ('k') | content/renderer/media/media_stream_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698