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

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

Issue 1688143003: Update histogram "WebRTC.Video.OnewayDelayInMs" to use the estimated one-way delay. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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) 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 const VideoFrame& video_frame) { 379 const VideoFrame& video_frame) {
380 // TODO(pbos): Wire up config_.render->IsTextureSupported() and convert if not 380 // TODO(pbos): Wire up config_.render->IsTextureSupported() and convert if not
381 // supported. Or provide methods for converting a texture frame in 381 // supported. Or provide methods for converting a texture frame in
382 // VideoFrame. 382 // VideoFrame.
383 383
384 if (config_.renderer != nullptr) 384 if (config_.renderer != nullptr)
385 config_.renderer->RenderFrame( 385 config_.renderer->RenderFrame(
386 video_frame, 386 video_frame,
387 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); 387 video_frame.render_time_ms() - clock_->TimeInMilliseconds());
388 388
389 stats_proxy_.OnRenderedFrame(video_frame.width(), video_frame.height()); 389 stats_proxy_.OnRenderedFrame(video_frame);
390 390
391 return 0; 391 return 0;
392 } 392 }
393 393
394 // TODO(asapersson): Consider moving callback from video_encoder.h or 394 // TODO(asapersson): Consider moving callback from video_encoder.h or
395 // creating a different callback. 395 // creating a different callback.
396 int32_t VideoReceiveStream::Encoded( 396 int32_t VideoReceiveStream::Encoded(
397 const EncodedImage& encoded_image, 397 const EncodedImage& encoded_image,
398 const CodecSpecificInfo* codec_specific_info, 398 const CodecSpecificInfo* codec_specific_info,
399 const RTPFragmentationHeader* fragmentation) { 399 const RTPFragmentationHeader* fragmentation) {
(...skipping 16 matching lines...) Expand all
416 return true; 416 return true;
417 } 417 }
418 418
419 void VideoReceiveStream::Decode() { 419 void VideoReceiveStream::Decode() {
420 static const int kMaxDecodeWaitTimeMs = 50; 420 static const int kMaxDecodeWaitTimeMs = 50;
421 vcm_->Decode(kMaxDecodeWaitTimeMs); 421 vcm_->Decode(kMaxDecodeWaitTimeMs);
422 } 422 }
423 423
424 } // namespace internal 424 } // namespace internal
425 } // namespace webrtc 425 } // namespace webrtc
OLDNEW
« webrtc/video/receive_statistics_proxy.cc ('K') | « webrtc/video/receive_statistics_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698