OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004--2011 Google Inc. | 3 * Copyright 2004--2011 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 rtc::scoped_refptr<VideoSourceInterface> | 223 rtc::scoped_refptr<VideoSourceInterface> |
224 PeerConnectionFactory::CreateVideoSource( | 224 PeerConnectionFactory::CreateVideoSource( |
225 cricket::VideoCapturer* capturer, | 225 cricket::VideoCapturer* capturer, |
226 const MediaConstraintsInterface* constraints) { | 226 const MediaConstraintsInterface* constraints) { |
227 RTC_DCHECK(signaling_thread_->IsCurrent()); | 227 RTC_DCHECK(signaling_thread_->IsCurrent()); |
228 rtc::scoped_refptr<VideoSource> source( | 228 rtc::scoped_refptr<VideoSource> source( |
229 VideoSource::Create(channel_manager_.get(), capturer, constraints)); | 229 VideoSource::Create(channel_manager_.get(), capturer, constraints)); |
230 return VideoSourceProxy::Create(signaling_thread_, source); | 230 return VideoSourceProxy::Create(signaling_thread_, source); |
231 } | 231 } |
232 | 232 |
233 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file) { | 233 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file, |
| 234 int64_t max_size_bytes) { |
234 RTC_DCHECK(signaling_thread_->IsCurrent()); | 235 RTC_DCHECK(signaling_thread_->IsCurrent()); |
235 return channel_manager_->StartAecDump(file); | 236 return channel_manager_->StartAecDump(file, max_size_bytes); |
236 } | 237 } |
237 | 238 |
238 void PeerConnectionFactory::StopAecDump() { | 239 void PeerConnectionFactory::StopAecDump() { |
239 RTC_DCHECK(signaling_thread_->IsCurrent()); | 240 RTC_DCHECK(signaling_thread_->IsCurrent()); |
240 channel_manager_->StopAecDump(); | 241 channel_manager_->StopAecDump(); |
241 } | 242 } |
242 | 243 |
243 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) { | 244 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) { |
244 RTC_DCHECK(signaling_thread_->IsCurrent()); | 245 RTC_DCHECK(signaling_thread_->IsCurrent()); |
245 return channel_manager_->StartRtcEventLog(file); | 246 return channel_manager_->StartRtcEventLog(file); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 } | 364 } |
364 | 365 |
365 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { | 366 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { |
366 ASSERT(worker_thread_ == rtc::Thread::Current()); | 367 ASSERT(worker_thread_ == rtc::Thread::Current()); |
367 return cricket::WebRtcMediaEngineFactory::Create( | 368 return cricket::WebRtcMediaEngineFactory::Create( |
368 default_adm_.get(), video_encoder_factory_.get(), | 369 default_adm_.get(), video_encoder_factory_.get(), |
369 video_decoder_factory_.get()); | 370 video_decoder_factory_.get()); |
370 } | 371 } |
371 | 372 |
372 } // namespace webrtc | 373 } // namespace webrtc |
OLD | NEW |