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

Side by Side Diff: webrtc/video/video_receive_stream.cc

Issue 1226123005: Define Stream base classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Code review follow-up 3 Created 5 years, 5 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/video_receive_stream.h ('k') | webrtc/video/video_send_stream.h » ('j') | 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 if (config_.renderer != nullptr) 314 if (config_.renderer != nullptr)
315 config_.renderer->RenderFrame( 315 config_.renderer->RenderFrame(
316 video_frame, 316 video_frame,
317 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); 317 video_frame.render_time_ms() - clock_->TimeInMilliseconds());
318 318
319 stats_proxy_->OnRenderedFrame(); 319 stats_proxy_->OnRenderedFrame();
320 320
321 return 0; 321 return 0;
322 } 322 }
323 323
324 void VideoReceiveStream::SignalNetworkState(Call::NetworkState state) { 324 void VideoReceiveStream::SignalNetworkState(NetworkState state) {
325 if (state == Call::kNetworkUp) 325 if (state == kNetworkUp)
326 SetRtcpMode(config_.rtp.rtcp_mode); 326 SetRtcpMode(config_.rtp.rtcp_mode);
327 if (state == Call::kNetworkDown) 327 if (state == kNetworkDown)
328 vie_channel_->SetRTCPMode(kRtcpOff); 328 vie_channel_->SetRTCPMode(kRtcpOff);
329 } 329 }
330 330
331 void VideoReceiveStream::SetRtcpMode(newapi::RtcpMode mode) { 331 void VideoReceiveStream::SetRtcpMode(newapi::RtcpMode mode) {
332 switch (mode) { 332 switch (mode) {
333 case newapi::kRtcpCompound: 333 case newapi::kRtcpCompound:
334 vie_channel_->SetRTCPMode(kRtcpCompound); 334 vie_channel_->SetRTCPMode(kRtcpCompound);
335 break; 335 break;
336 case newapi::kRtcpReducedSize: 336 case newapi::kRtcpReducedSize:
337 vie_channel_->SetRTCPMode(kRtcpNonCompound); 337 vie_channel_->SetRTCPMode(kRtcpNonCompound);
338 break; 338 break;
339 } 339 }
340 } 340 }
341 } // namespace internal 341 } // namespace internal
342 } // namespace webrtc 342 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/video_receive_stream.h ('k') | webrtc/video/video_send_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698