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

Side by Side Diff: content/renderer/media/webrtc/video_destination_handler.cc

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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "content/renderer/media/webrtc/video_destination_handler.h" 5 #include "content/renderer/media/webrtc/video_destination_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 DVLOG(3) << "PpFrameWriter ctor"; 76 DVLOG(3) << "PpFrameWriter ctor";
77 } 77 }
78 78
79 PpFrameWriter::~PpFrameWriter() { 79 PpFrameWriter::~PpFrameWriter() {
80 DVLOG(3) << "PpFrameWriter dtor"; 80 DVLOG(3) << "PpFrameWriter dtor";
81 } 81 }
82 82
83 void PpFrameWriter::GetCurrentSupportedFormats( 83 void PpFrameWriter::GetCurrentSupportedFormats(
84 int max_requested_width, 84 int max_requested_width,
85 int max_requested_height, 85 int max_requested_height,
86 double max_requested_frame_rate,
86 const VideoCaptureDeviceFormatsCB& callback) { 87 const VideoCaptureDeviceFormatsCB& callback) {
87 DCHECK(CalledOnValidThread()); 88 DCHECK(CalledOnValidThread());
88 DVLOG(3) << "PpFrameWriter::GetCurrentSupportedFormats()"; 89 DVLOG(3) << "PpFrameWriter::GetCurrentSupportedFormats()";
89 // Since the input is free to change the resolution at any point in time 90 // Since the input is free to change the resolution at any point in time
90 // the supported formats are unknown. 91 // the supported formats are unknown.
91 media::VideoCaptureFormats formats; 92 media::VideoCaptureFormats formats;
92 callback.Run(formats); 93 callback.Run(formats);
93 } 94 }
94 95
95 void PpFrameWriter::StartSourceImpl( 96 void PpFrameWriter::StartSourceImpl(
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 227
227 stream.addTrack(MediaStreamVideoTrack::CreateVideoTrack( 228 stream.addTrack(MediaStreamVideoTrack::CreateVideoTrack(
228 writer, constraints, MediaStreamVideoSource::ConstraintsCallback(), 229 writer, constraints, MediaStreamVideoSource::ConstraintsCallback(),
229 track_enabled)); 230 track_enabled));
230 231
231 *frame_writer = new PpFrameWriterProxy(writer->AsWeakPtr()); 232 *frame_writer = new PpFrameWriterProxy(writer->AsWeakPtr());
232 return true; 233 return true;
233 } 234 }
234 235
235 } // namespace content 236 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698