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

Unified Diff: content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc

Issue 212973002: Refactor VideoDestinationHandler to implement MediaStreamVideoSource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/webrtc/webrtc_video_capturer_adapter.cc
diff --git a/content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc b/content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc
index 6d6f7ff54fd5b3137242c5fdd107356097f68829..d028b3f0c11be1d81da2084fd3f306216807050a 100644
--- a/content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc
+++ b/content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc
@@ -24,25 +24,6 @@ WebRtcVideoCapturerAdapter::~WebRtcVideoCapturerAdapter() {
base::AlignedFree(buffer_);
}
-void WebRtcVideoCapturerAdapter::SetRequestedFormat(
- const media::VideoCaptureFormat& format) {
- DCHECK_EQ(media::PIXEL_FORMAT_I420, format.pixel_format);
- DVLOG(3) << "WebRtcVideoCapturerAdapter::SetRequestedFormat"
- << " w = " << format.frame_size.width()
- << " h = " << format.frame_size.height();
- cricket::VideoFormat supported_format(format.frame_size.width(),
- format.frame_size.height(),
- cricket::VideoFormat::FpsToInterval(
- format.frame_rate),
- cricket::FOURCC_I420);
- SetCaptureFormat(&supported_format);
-
- // Update the desired aspect ratio so that later the video frame can be
- // cropped to meet the requirement if the camera returns a different
- // resolution than the |request|.
- UpdateAspectRatio(format.frame_size.width(), format.frame_size.height());
-}
-
cricket::CaptureState WebRtcVideoCapturerAdapter::Start(
const cricket::VideoFormat& capture_format) {
DCHECK(!running_);

Powered by Google App Engine
This is Rietveld 408576698