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

Side by Side Diff: webrtc/video_engine/vie_channel_group.cc

Issue 1337003003: Add a name to the ProcessThread constructor. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comments addressed. Created 5 years, 3 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
OLDNEW
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 call_stats_(new CallStats()), 160 call_stats_(new CallStats()),
161 encoder_state_feedback_(new EncoderStateFeedback()), 161 encoder_state_feedback_(new EncoderStateFeedback()),
162 packet_router_(new PacketRouter()), 162 packet_router_(new PacketRouter()),
163 pacer_(new PacedSender(Clock::GetRealTimeClock(), 163 pacer_(new PacedSender(Clock::GetRealTimeClock(),
164 packet_router_.get(), 164 packet_router_.get(),
165 BitrateController::kDefaultStartBitrateKbps, 165 BitrateController::kDefaultStartBitrateKbps,
166 PacedSender::kDefaultPaceMultiplier * 166 PacedSender::kDefaultPaceMultiplier *
167 BitrateController::kDefaultStartBitrateKbps, 167 BitrateController::kDefaultStartBitrateKbps,
168 0)), 168 0)),
169 process_thread_(process_thread), 169 process_thread_(process_thread),
170 pacer_thread_(ProcessThread::Create()), 170 pacer_thread_(ProcessThread::Create("PacerThread")),
171 // Constructed last as this object calls the provided callback on 171 // Constructed last as this object calls the provided callback on
172 // construction. 172 // construction.
173 bitrate_controller_( 173 bitrate_controller_(
174 BitrateController::CreateBitrateController(Clock::GetRealTimeClock(), 174 BitrateController::CreateBitrateController(Clock::GetRealTimeClock(),
175 this)), 175 this)),
176 send_time_history_(new AdaptedSendTimeHistory()) { 176 send_time_history_(new AdaptedSendTimeHistory()) {
177 remote_bitrate_estimator_.reset(new WrappingBitrateEstimator( 177 remote_bitrate_estimator_.reset(new WrappingBitrateEstimator(
178 remb_.get(), Clock::GetRealTimeClock())); 178 remb_.get(), Clock::GetRealTimeClock()));
179 179
180 call_stats_->RegisterStatsObserver(remote_bitrate_estimator_.get()); 180 call_stats_->RegisterStatsObserver(remote_bitrate_estimator_.get());
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 rtc::CritScope lock(&encoder_map_crit_); 383 rtc::CritScope lock(&encoder_map_crit_);
384 for (const auto& encoder : vie_encoder_map_) 384 for (const auto& encoder : vie_encoder_map_)
385 pad_up_to_bitrate_bps += encoder.second->GetPaddingNeededBps(); 385 pad_up_to_bitrate_bps += encoder.second->GetPaddingNeededBps();
386 } 386 }
387 pacer_->UpdateBitrate( 387 pacer_->UpdateBitrate(
388 target_bitrate_bps / 1000, 388 target_bitrate_bps / 1000,
389 PacedSender::kDefaultPaceMultiplier * target_bitrate_bps / 1000, 389 PacedSender::kDefaultPaceMultiplier * target_bitrate_bps / 1000,
390 pad_up_to_bitrate_bps / 1000); 390 pad_up_to_bitrate_bps / 1000);
391 } 391 }
392 } // namespace webrtc 392 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698