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

Side by Side Diff: content/renderer/media/webrtc/media_stream_remote_video_source.h

Issue 442643002: Allow MediaStream constraints to specify higher than 30 FPS tab capture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile whoops. Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_
7 7
8 #include "base/threading/thread_checker.h" 8 #include "base/threading/thread_checker.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/renderer/media/media_stream_video_source.h" 10 #include "content/renderer/media/media_stream_video_source.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 explicit MediaStreamRemoteVideoSource( 24 explicit MediaStreamRemoteVideoSource(
25 webrtc::VideoTrackInterface* remote_track); 25 webrtc::VideoTrackInterface* remote_track);
26 virtual ~MediaStreamRemoteVideoSource(); 26 virtual ~MediaStreamRemoteVideoSource();
27 27
28 protected: 28 protected:
29 // Implements MediaStreamVideoSource. 29 // Implements MediaStreamVideoSource.
30 virtual void GetCurrentSupportedFormats( 30 virtual void GetCurrentSupportedFormats(
31 int max_requested_width, 31 int max_requested_width,
32 int max_requested_height, 32 int max_requested_height,
33 double max_requested_frame_rate,
33 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; 34 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE;
34 35
35 virtual void StartSourceImpl( 36 virtual void StartSourceImpl(
36 const media::VideoCaptureParams& params, 37 const media::VideoCaptureParams& params,
37 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; 38 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE;
38 39
39 virtual void StopSourceImpl() OVERRIDE; 40 virtual void StopSourceImpl() OVERRIDE;
40 41
41 // Used by tests to test that a frame can be received and that the 42 // Used by tests to test that a frame can be received and that the
42 // MediaStreamRemoteVideoSource behaves as expected. 43 // MediaStreamRemoteVideoSource behaves as expected.
(...skipping 13 matching lines...) Expand all
56 57
57 // Bound to the render thread. 58 // Bound to the render thread.
58 base::ThreadChecker thread_checker_; 59 base::ThreadChecker thread_checker_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(MediaStreamRemoteVideoSource); 61 DISALLOW_COPY_AND_ASSIGN(MediaStreamRemoteVideoSource);
61 }; 62 };
62 63
63 } // namespace content 64 } // namespace content
64 65
65 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ 66 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698