OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |