| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 VideoRenderer* local_renderer, | 35 VideoRenderer* local_renderer, |
| 36 SendStatisticsProxy* stats_proxy, | 36 SendStatisticsProxy* stats_proxy, |
| 37 CpuOveruseObserver* overuse_observer, | 37 CpuOveruseObserver* overuse_observer, |
| 38 EncodingTimeObserver* encoding_time_observer) | 38 EncodingTimeObserver* encoding_time_observer) |
| 39 : capture_cs_(CriticalSectionWrapper::CreateCriticalSection()), | 39 : capture_cs_(CriticalSectionWrapper::CreateCriticalSection()), |
| 40 module_process_thread_(module_process_thread), | 40 module_process_thread_(module_process_thread), |
| 41 frame_callback_(frame_callback), | 41 frame_callback_(frame_callback), |
| 42 local_renderer_(local_renderer), | 42 local_renderer_(local_renderer), |
| 43 stats_proxy_(stats_proxy), | 43 stats_proxy_(stats_proxy), |
| 44 incoming_frame_cs_(CriticalSectionWrapper::CreateCriticalSection()), | 44 incoming_frame_cs_(CriticalSectionWrapper::CreateCriticalSection()), |
| 45 encoder_thread_(ThreadWrapper::CreateThread(EncoderThreadFunction, | 45 encoder_thread_(PlatformThread::CreateThread(EncoderThreadFunction, |
| 46 this, | 46 this, |
| 47 "EncoderThread")), | 47 "EncoderThread")), |
| 48 capture_event_(EventWrapper::Create()), | 48 capture_event_(EventWrapper::Create()), |
| 49 stop_(0), | 49 stop_(0), |
| 50 last_captured_timestamp_(0), | 50 last_captured_timestamp_(0), |
| 51 delta_ntp_internal_ms_( | 51 delta_ntp_internal_ms_( |
| 52 Clock::GetRealTimeClock()->CurrentNtpInMilliseconds() - | 52 Clock::GetRealTimeClock()->CurrentNtpInMilliseconds() - |
| 53 TickTime::MillisecondTimestamp()), | 53 TickTime::MillisecondTimestamp()), |
| 54 overuse_detector_(new OveruseFrameDetector(Clock::GetRealTimeClock(), | 54 overuse_detector_(new OveruseFrameDetector(Clock::GetRealTimeClock(), |
| 55 CpuOveruseOptions(), | 55 CpuOveruseOptions(), |
| 56 overuse_observer, | 56 overuse_observer, |
| 57 stats_proxy)), | 57 stats_proxy)), |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 160 } |
| 161 // We're done! | 161 // We're done! |
| 162 if (capture_time != -1) { | 162 if (capture_time != -1) { |
| 163 overuse_detector_->FrameSent(capture_time); | 163 overuse_detector_->FrameSent(capture_time); |
| 164 } | 164 } |
| 165 return true; | 165 return true; |
| 166 } | 166 } |
| 167 | 167 |
| 168 } // namespace internal | 168 } // namespace internal |
| 169 } // namespace webrtc | 169 } // namespace webrtc |
| OLD | NEW |