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

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

Issue 1152733005: Use one scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove from BUILD.gn Created 5 years, 6 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
« no previous file with comments | « webrtc/video_engine/vie_encoder.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 if (vcm_->RegisterTransportCallback(this) != 0) { 172 if (vcm_->RegisterTransportCallback(this) != 0) {
173 return false; 173 return false;
174 } 174 }
175 if (vcm_->RegisterSendStatisticsCallback(this) != 0) { 175 if (vcm_->RegisterSendStatisticsCallback(this) != 0) {
176 return false; 176 return false;
177 } 177 }
178 return true; 178 return true;
179 } 179 }
180 180
181 void ViEEncoder::StartThreadsAndSetSharedMembers( 181 void ViEEncoder::StartThreadsAndSetSharedMembers(
182 scoped_refptr<PayloadRouter> send_payload_router, 182 rtc::scoped_refptr<PayloadRouter> send_payload_router,
183 VCMProtectionCallback* vcm_protection_callback) { 183 VCMProtectionCallback* vcm_protection_callback) {
184 DCHECK(send_payload_router_ == NULL); 184 DCHECK(send_payload_router_ == NULL);
185 185
186 send_payload_router_ = send_payload_router; 186 send_payload_router_ = send_payload_router;
187 vcm_->RegisterProtectionCallback(vcm_protection_callback); 187 vcm_->RegisterProtectionCallback(vcm_protection_callback);
188 module_process_thread_.RegisterModule(vcm_.get()); 188 module_process_thread_.RegisterModule(vcm_.get());
189 } 189 }
190 190
191 void ViEEncoder::StopThreadsAndRemoveSharedMembers() { 191 void ViEEncoder::StopThreadsAndRemoveSharedMembers() {
192 if (bitrate_allocator_) 192 if (bitrate_allocator_)
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 } 863 }
864 864
865 int32_t QMVideoSettingsCallback::SetVideoQMSettings( 865 int32_t QMVideoSettingsCallback::SetVideoQMSettings(
866 const uint32_t frame_rate, 866 const uint32_t frame_rate,
867 const uint32_t width, 867 const uint32_t width,
868 const uint32_t height) { 868 const uint32_t height) {
869 return vpm_->SetTargetResolution(width, height, frame_rate); 869 return vpm_->SetTargetResolution(width, height, frame_rate);
870 } 870 }
871 871
872 } // namespace webrtc 872 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video_engine/vie_encoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698