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

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: check delay >= 0 Created 4 years, 9 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/receive_statistics_proxy.cc ('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) 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 const VideoFrame& video_frame) { 381 const VideoFrame& video_frame) {
382 // TODO(pbos): Wire up config_.render->IsTextureSupported() and convert if not 382 // TODO(pbos): Wire up config_.render->IsTextureSupported() and convert if not
383 // supported. Or provide methods for converting a texture frame in 383 // supported. Or provide methods for converting a texture frame in
384 // VideoFrame. 384 // VideoFrame.
385 385
386 if (config_.renderer != nullptr) 386 if (config_.renderer != nullptr)
387 config_.renderer->RenderFrame( 387 config_.renderer->RenderFrame(
388 video_frame, 388 video_frame,
389 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); 389 video_frame.render_time_ms() - clock_->TimeInMilliseconds());
390 390
391 stats_proxy_.OnRenderedFrame(video_frame.width(), video_frame.height()); 391 stats_proxy_.OnRenderedFrame(video_frame);
392 392
393 return 0; 393 return 0;
394 } 394 }
395 395
396 // TODO(asapersson): Consider moving callback from video_encoder.h or 396 // TODO(asapersson): Consider moving callback from video_encoder.h or
397 // creating a different callback. 397 // creating a different callback.
398 int32_t VideoReceiveStream::Encoded( 398 int32_t VideoReceiveStream::Encoded(
399 const EncodedImage& encoded_image, 399 const EncodedImage& encoded_image,
400 const CodecSpecificInfo* codec_specific_info, 400 const CodecSpecificInfo* codec_specific_info,
401 const RTPFragmentationHeader* fragmentation) { 401 const RTPFragmentationHeader* fragmentation) {
(...skipping 16 matching lines...) Expand all
418 return true; 418 return true;
419 } 419 }
420 420
421 void VideoReceiveStream::Decode() { 421 void VideoReceiveStream::Decode() {
422 static const int kMaxDecodeWaitTimeMs = 50; 422 static const int kMaxDecodeWaitTimeMs = 50;
423 vcm_->Decode(kMaxDecodeWaitTimeMs); 423 vcm_->Decode(kMaxDecodeWaitTimeMs);
424 } 424 }
425 425
426 } // namespace internal 426 } // namespace internal
427 } // namespace webrtc 427 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/receive_statistics_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698